md: bcache: io.c: fix a potential NULL pointer dereference
authorKumar Amit Mehta <gmate.amit@gmail.com>
Tue, 28 May 2013 07:31:15 +0000 (00:31 -0700)
committerKent Overstreet <koverstreet@google.com>
Thu, 27 Jun 2013 00:06:19 +0000 (17:06 -0700)
commit5c694129c8db6d89c9be109049a16510b2f70f6d
tree9d6e5a0bf91285f28e89407c2367cf026dcf88ad
parent9e895ace5d82df8929b16f58e9f515f6d54ab82d
md: bcache: io.c: fix a potential NULL pointer dereference

bio_alloc_bioset returns NULL on failure. This fix adds a missing check
for potential NULL pointer dereferencing.

Signed-off-by: Kumar Amit Mehta <gmate.amit@gmail.com>
Signed-off-by: Kent Overstreet <koverstreet@google.com>
drivers/md/bcache/io.c