diff options
-rw-r--r-- | block/bsg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/bsg.c b/block/bsg.c index 73c78fd12cc1..276e869e686c 100644 --- a/block/bsg.c +++ b/block/bsg.c | |||
@@ -287,6 +287,7 @@ bsg_map_hdr(struct bsg_device *bd, struct sg_io_v4 *hdr, fmode_t has_write_perm, | |||
287 | next_rq = blk_get_request(q, READ, GFP_KERNEL); | 287 | next_rq = blk_get_request(q, READ, GFP_KERNEL); |
288 | if (IS_ERR(next_rq)) { | 288 | if (IS_ERR(next_rq)) { |
289 | ret = PTR_ERR(next_rq); | 289 | ret = PTR_ERR(next_rq); |
290 | next_rq = NULL; | ||
290 | goto out; | 291 | goto out; |
291 | } | 292 | } |
292 | rq->next_rq = next_rq; | 293 | rq->next_rq = next_rq; |