rbd: use kmemdup()
authorAlex Elder <elder@dreamhost.com>
Thu, 1 Nov 2012 13:39:27 +0000 (08:39 -0500)
committerAlex Elder <elder@inktank.com>
Thu, 17 Jan 2013 20:09:00 +0000 (14:09 -0600)
commit4caf35f9ecdca1feef1d2e5e223b78e52ffbea87
treeae709588c296a65d394489d14fb3635ce2fceea0
parent979ed480a2722ad8d9f87054635158f652a1241e
rbd: use kmemdup()

This replaces two kmalloc()/memcpy() combinations with a single
call to kmemdup().

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c