Skip to content
Commit 52805174 authored by Roland Dreier's avatar Roland Dreier
Browse files

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: default avatarRoland Dreier <rolandd@cisco.com>
parent f6bccf69
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment