Re: [PATCH] md: bcache: io.c: fix a potential NULL pointer dereference

2013-05-28 Thread Kumar amit mehta
On Tue, May 28, 2013 at 05:20:41PM -0700, Kent Overstreet wrote: > On Tue, May 28, 2013 at 12:31:15AM -0700, Kumar Amit Mehta wrote: > > bio_alloc_bioset returns NULL on failure. This fix adds a missing check > > for potential NULL pointer dereferencing. > > Whoops, that's definitely a bug. Thanks

Re: [PATCH] md: bcache: io.c: fix a potential NULL pointer dereference

2013-05-28 Thread Kent Overstreet
On Tue, May 28, 2013 at 12:31:15AM -0700, Kumar Amit Mehta wrote: > bio_alloc_bioset returns NULL on failure. This fix adds a missing check > for potential NULL pointer dereferencing. Whoops, that's definitely a bug. Thanks, applied. How'd you find it? -- To unsubscribe from this list: send the l

[PATCH] md: bcache: io.c: fix a potential NULL pointer dereference

2013-05-28 Thread Kumar Amit Mehta
bio_alloc_bioset returns NULL on failure. This fix adds a missing check for potential NULL pointer dereferencing. Signed-off-by: Kumar Amit Mehta --- drivers/md/bcache/io.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/md/bcache/io.c b/drivers/md/bcache/io.c index 29f344b..4be