]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: fix NULL pointer deref in blk_add_request_payload
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 25 Jun 2014 15:52:38 +0000 (17:52 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 25 Jun 2014 15:53:47 +0000 (09:53 -0600)
commit323eaed0eeae6d80043968ea363f1a46b91dab43
tree8af1eb069624fa2aa4ab8a27b7eb39429b2998c0
parent9d2062a46bf96d5a31e89871ec58b9f08723c4a5
drbd: fix NULL pointer deref in blk_add_request_payload

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@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/drbd/drbd_receiver.c