kmalloc() may fail, so test whether it succeeded.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Cc: Wei Yongjun <yjwei@cn.fujitsu.com> Cc: Mike Christie <michaelc@cs.wisc.edu> Cc: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Showing
Please register or sign in to comment