]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2013 16:47:40 +0000 (09:47 -0700)
commitba5c60fc8f5f574c7cec70740ca19d358b780c57
treee5142cafb4422d696970fa54e8a3f20d5710c879
parent644f5d570740c90439fdf69e8b47647584c6dc2f
md: bcache: io.c: fix a potential NULL pointer dereference

commit 5c694129c8db6d89c9be109049a16510b2f70f6d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/bcache/io.c