From: Xiaochen Wang Date: Thu, 10 Mar 2011 14:31:39 +0000 (+0800) Subject: mtd: sm_rtl: check kmalloc return value X-Git-Tag: v2.6.39-rc1~40^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=629286b9561982e90a6d49893a1c641e71b6a2a3;p=pandora-kernel.git mtd: sm_rtl: check kmalloc return value Because malloc/kzalloc may fail, we should check kmalloc/kzalloc return value in sm_create_sysfs_attributes(), mtd/sm_rtl.c and do error handling. Meanwhile, we should check sm_create_sysfs_attributes return value. Signed-off-by: Xiaochen Wang Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed