xen-blkfront: replace kmalloc and then memcpy with kmemdup
authorMihnea Dobrescu-Balaur <mihneadb@gmail.com>
Mon, 11 Mar 2013 11:23:36 +0000 (13:23 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 18 Mar 2013 20:31:31 +0000 (16:31 -0400)
commit29d0b218c87ace1078e08bb32c2e72fc96fa3db3
tree439d33d7c607ecca5410754117438f82458a2696
parent0e5e098ac22dae38f957e951b70d3cf73beff0f7
xen-blkfront: replace kmalloc and then memcpy with kmemdup

The benefits are:
* code is cleaner
* kmemdup adds additional debugging info useful for tracking the real
place where memory was allocated (CONFIG_DEBUG_SLAB).

Signed-off-by: Mihnea Dobrescu-Balaur <mihneadb@gmail.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c