[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)
commit9d79f1b4677cfe503f721000529f1462ca7b6f6d
tree5aa6118178086942f7e96941536fe6ad0ab5df45
parent31f87cf48d54f5930e6e8e827989c18b0069c94a
[PATCH] IB/mthca: Fix FMR breakage caused by kmemdup() conversion

Commit bed8bdfd ("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