bcache: check for allocation failures
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 5 Jul 2013 06:05:46 +0000 (09:05 +0300)
committerKent Overstreet <kmo@daterainc.com>
Fri, 12 Jul 2013 07:22:46 +0000 (00:22 -0700)
commitd2a65ce2ac224413b291307201c5dafb03aa90d7
tree398b6ca67bada221c6f56dc0adec950f63fbc0d8
parent6aa8f1a6ca41c49721d2de4e048d3da8d06411f9
bcache: check for allocation failures

There is a missing NULL check after the kzalloc().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
drivers/md/bcache/sysfs.c