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

From: Jens Axboe
Date: Wed Jun 25 2014 - 11:56:19 EST


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

Applied, thanks.

--
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/