aboutsummaryrefslogtreecommitdiff
path: root/include/linux/mlx4/cmd.h
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2008-10-14 14:05:36 -0700
committerRoland Dreier <rolandd@cisco.com>2008-10-14 14:05:36 -0700
commit528051746b24dd214883db11bcbb0e667f60447d (patch)
tree4b9a761c73aa26a8767de61e17ff10072f4b32c6 /include/linux/mlx4/cmd.h
parentf6bccf695431da0e9bd773550ae91b8cb9ffb227 (diff)
downloadlinux-linaro-528051746b24dd214883db11bcbb0e667f60447d.tar.gz
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 <haven.hash@isilon.com>. Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/linux/mlx4/cmd.h')
0 files changed, 0 insertions, 0 deletions