summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6656
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-05-07 16:06:52 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-13 13:51:12 +0200
commitd92e6991616daf4cb6e677a742282ceffb7ecfd4 (patch)
treea5b49387ff3ebc65a763acb77b0e62e2df5c292a /drivers/staging/vt6656
parent08e1b4274c7b446137b5b222c5cc0b46688cb372 (diff)
staging: most: usb: sanity check channel before using it as an index into arrays
Currently channel is being sanity checked after it has been used as an index into some arrays. Fix this by moving the sanity check of channel before the arrays are indexed with it. Addresses-Coverity: ("Negative array index read") Fixes: 59ed0480b950 ("Staging: most: replace pr_*() functions by dev_*()") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20200507150652.52238-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656')
0 files changed, 0 insertions, 0 deletions