staging: rtl8192e: Use kmemdup for duplicating memory
authorHema Prathaban <hemaklnce@gmail.com>
Tue, 14 May 2013 15:31:22 +0000 (21:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 May 2013 18:23:41 +0000 (14:23 -0400)
commit6dea0da1fff9ec1fcfc989e13cde451d5e7604ce
treebd33148297a727e4d8fedb12f7897cdd0d20b9f2
parentae053253a7971b6c97ad570e0f373974ca6d7e06
staging: rtl8192e: Use kmemdup for duplicating memory

Instead of allocating memory (kmalloc) and copying (memcpy)
from source, memory can be duplicated using kmemdup

Signed-off-by: Hema Prathaban <hemaklnce@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_softmac.c