]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] IB/mthca: Fix FMR breakage caused by kmemdup() conversion
authorMichael S. Tsirkin <mst@mellanox.co.il>
Sat, 30 Dec 2006 00:47:37 +0000 (16:47 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 30 Dec 2006 18:55:55 +0000 (10:55 -0800)
commit67e650e54638502e8688e558558e5fa487d06a3a
tree5aa6118178086942f7e96941536fe6ad0ab5df45
parent7b117b4c3f7163138590e59b640d550c6e548d47
[PATCH] IB/mthca: Fix FMR breakage caused by kmemdup() conversion

Commit c8d653d0 ("IB: kmemdup() cleanup") introduced one bad conversion to
kmemdup() in mthca_alloc_fmr(), where the structure allocated and the
structure copied are not the same size.  Revert this back to the original
kmalloc()/memcpy() code.

Reported-by: Dotan Barak <dotanb@mellanox.co.il>.
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <roland@digitalvampire.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/infiniband/hw/mthca/mthca_provider.c