staging: rtl8192e use kmemdup and check its return value
authorXiaochen Wang <wangxiaochen0@gmail.com>
Sun, 6 Mar 2011 14:04:15 +0000 (22:04 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Mar 2011 21:46:38 +0000 (13:46 -0800)
commit9603ff50b5d56e6ee64b10116ff640320732f9c8
tree0e64dc27957623c7993c8d3769e312837de1e71c
parent0875abf83df7d74bf9858c125e82835bd1ca349c
staging: rtl8192e use kmemdup and check its return value

use kmemdup instead of kmalloc and memcpy,
and check its return value

Signed-off-by: Xiaochen Wang <wangxiaochen0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c