summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
47633cf)
Error handling code following a kmalloc should free the allocated data.
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Tony Luck <tony.luck@intel.com>
entry = find_next_zero_bit(map, mapsize, last_entry);
}
entry = find_next_zero_bit(map, mapsize, last_entry);
}
+ if (entry > mapsize) {
+ kfree(ca_dmamap);
for (i = 0; i < entries; i++)
set_bit(entry + i, map);
for (i = 0; i < entries; i++)
set_bit(entry + i, map);