commit | 629286b9561982e90a6d49893a1c641e71b6a2a3 | [log] [tgz] |
---|---|---|
author | Xiaochen Wang <wangxiaochen0@gmail.com> | Thu Mar 10 22:31:39 2011 +0800 |
committer | David Woodhouse <David.Woodhouse@intel.com> | Fri Mar 11 14:27:10 2011 +0000 |
tree | cb32198537f69897e2640724972db9bb52c574d8 | |
parent | 1065cda8a1a57d0d3bfccdce1a655a84439d24e0 [diff] |
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 <wangxiaochen0@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>