]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
airspy: increase USB control message buffer size
authorAntti Palosaari <crope@iki.fi>
Mon, 26 Oct 2015 20:58:14 +0000 (18:58 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Jan 2016 19:25:48 +0000 (11:25 -0800)
commit aa0850e1d56623845b46350ffd971afa9241886d upstream.

Driver requested device firmware version string during probe using
only 24 byte long buffer. That buffer is too small for newer firmware
versions, which causes device firmware hang - device stops responding
to any commands after that. Increase buffer size to 128 which should
be enough for any current and future version strings.

Link: https://github.com/airspy/host/issues/27
Reported-by: Benjamin Vernoux <bvernoux@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/airspy/airspy.c

index 8f2e1c277c5f3a02f8e5c5ef4978dc460a6a1e8c..7b91327bd4729a7310c400f91b341e2d5d045447 100644 (file)
@@ -132,7 +132,7 @@ struct airspy {
        int            urbs_submitted;
 
        /* USB control message buffer */
-       #define BUF_SIZE 24
+       #define BUF_SIZE 128
        u8 buf[BUF_SIZE];
 
        /* Current configuration */