Re: [PATCH] drbd: fix NULL pointer deref in blk_add_request_payload

2014-06-25 Thread Jens Axboe
On 06/25/2014 09:52 AM, Philipp Reisner wrote: > From: Lars Ellenberg > > Discards don't have any payload. > But the scsi layer still expects a bio_vec it can use internally, > see sd_setup_discard_cmnd() and blk_add_request_payload(). > > Signed-off-by: Philipp Reisner > Signed-off-by: Lars El

[PATCH] drbd: fix NULL pointer deref in blk_add_request_payload

2014-06-25 Thread Philipp Reisner
From: Lars Ellenberg Discards don't have any payload. But the scsi layer still expects a bio_vec it can use internally, see sd_setup_discard_cmnd() and blk_add_request_payload(). Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_receiver.c | 5 - 1 f