[Drbd-dev] [PATCH] drbd: fix NULL pointer deref in blk_add_request_payload

Jens Axboe axboe at kernel.dk
Wed Jun 25 17:56:24 CEST 2014


On 06/25/2014 09:52 AM, Philipp Reisner wrote:
> From: Lars Ellenberg <lars.ellenberg at linbit.com>
> 
> 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 <philipp.reisner at linbit.com>
> Signed-off-by: Lars Ellenberg <lars.ellenberg at linbit.com>

Applied, thanks.

-- 
Jens Axboe



More information about the drbd-dev mailing list