Skip to content

Commit

Permalink
[media] airspy: increase USB control message buffer size
Browse files Browse the repository at this point in the history
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

Cc: <stable@vger.kernel.org> # 3.17+
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>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Dec 18, 2015
1 parent d47fa53 commit aa0850e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/usb/airspy/airspy.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ struct airspy {
int urbs_submitted;

/* USB control message buffer */
#define BUF_SIZE 24
#define BUF_SIZE 128
u8 buf[BUF_SIZE];

/* Current configuration */
Expand Down

0 comments on commit aa0850e

Please sign in to comment.