diff options
| author | Roland Dreier <[email protected]> | 2008-10-14 21:05:36 +0000 |
|---|---|---|
| committer | Roland Dreier <[email protected]> | 2008-10-14 21:05:36 +0000 |
| commit | 528051746b24dd214883db11bcbb0e667f60447d (patch) | |
| tree | 4b9a761c73aa26a8767de61e17ff10072f4b32c6 /lib/bitmap.c | |
| parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 (diff) | |
| download | kernel-528051746b24dd214883db11bcbb0e667f60447d.tar.gz kernel-528051746b24dd214883db11bcbb0e667f60447d.zip | |
IB/mad: Use krealloc() to resize snoop table
Use krealloc() instead of kmalloc() followed by memcpy() when resizing
the MAD module's snoop table.
Also put parentheses around the new table size to avoid calculating
the wrong size to allocate, which fixes a bug pointed out by Haven
Hash <[email protected]>.
Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions
