diff options
author | Xiaochen Wang <wangxiaochen0@gmail.com> | 2011-03-10 22:31:39 +0800 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-03-11 14:27:10 +0000 |
commit | 629286b9561982e90a6d49893a1c641e71b6a2a3 (patch) | |
tree | cb32198537f69897e2640724972db9bb52c574d8 /drivers/mtd/mtdswap.c | |
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>
Diffstat (limited to 'drivers/mtd/mtdswap.c')
0 files changed, 0 insertions, 0 deletions