• Florian Mickler's avatar
    [media] vp7045: fix buffer setup · fc61ccd3
    Florian Mickler authored
    dvb_usb_device_init calls the frontend_attach method of this driver which
    uses vp7045_usb_ob. In order to have a buffer ready in vp7045_usb_op, it has to
    be allocated before that happens.
    
    Luckily we can use the whole private data as the buffer as it gets separately
    allocated on the heap via kzalloc in dvb_usb_device_init and is thus apt for
    use via usb_control_msg.
    
    This fixes a
    	BUG: unable to handle kernel paging request at 0000000000001e78
    
    reported by Tino Keitel and diagnosed by Dan Carpenter.
    
    Cc: stable@kernel.org # For v3.0 and upper
    Tested-by: default avatarTino Keitel <tino.keitel@tikei.de>
    Signed-off-by: default avatarFlorian Mickler <florian@mickler.org>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    fc61ccd3
Name
Last commit
Last update
..
common Loading commit data...
dvb Loading commit data...
radio Loading commit data...
rc Loading commit data...
video Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
media-device.c Loading commit data...
media-devnode.c Loading commit data...
media-entity.c Loading commit data...