diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-10-29 23:13:40 +0300 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2006-12-07 21:43:02 +0100 |
commit | bfe89d724527c8b1bb1b68b0da1d94907b094094 (patch) | |
tree | 515e4bcf9e4f6c5cccdeb4ce724e891a1bfa28f2 /drivers/ieee1394/nodemgr.c | |
parent | 5f8d17f6023ea9aca7c0063c5b472529f2664944 (diff) | |
download | op-kernel-dev-bfe89d724527c8b1bb1b68b0da1d94907b094094.zip op-kernel-dev-bfe89d724527c8b1bb1b68b0da1d94907b094094.tar.gz |
drivers/ieee1394/*: use kmemdup()
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/ieee1394/nodemgr.c')
-rw-r--r-- | drivers/ieee1394/nodemgr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ieee1394/nodemgr.c b/drivers/ieee1394/nodemgr.c index 640d677..801f6061 100644 --- a/drivers/ieee1394/nodemgr.c +++ b/drivers/ieee1394/nodemgr.c @@ -1078,10 +1078,9 @@ static struct unit_directory *nodemgr_process_unit_directory /* Logical Unit Number */ if (kv->key.type == CSR1212_KV_TYPE_IMMEDIATE) { if (ud->flags & UNIT_DIRECTORY_HAS_LUN) { - ud_child = kmalloc(sizeof(*ud_child), GFP_KERNEL); + ud_child = kmemdup(ud, sizeof(*ud_child), GFP_KERNEL); if (!ud_child) goto unit_directory_error; - memcpy(ud_child, ud, sizeof(*ud_child)); nodemgr_register_device(ne, ud_child, &ne->device); ud_child = NULL; |