Thread (21 messages) 21 messages, 8 authors, 2017-12-31

Re: [v2,4/6] pktcdvd: Check queue type before attaching to a queue

From: Bart Van Assche <hidden>
Date: 2017-12-31 00:53:16

On Sat, 2017-12-30 at 22:41 +0100, Maciej S. Szmigiero wrote:
This commit causes a NULL pointer dereference when adding a pktcdvd
mapping.

Reproducing it is simple:
# pktsetup 1 /dev/cdrom 

Specifically, the NULL dereference happens inside bdev_get_queue(bdev),
which is supposed to return bdev->bd_disk->queue, but in this case
bdev->bd_disk is NULL.
Would it be possible to test the two attached patches?

Thanks,

Bart.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help