can: kvaser_usb: Don't send a RESET_CHIP for non-existing channels
authorAhmed S. Darwish <[email protected]>
Mon, 5 Jan 2015 17:57:13 +0000 (12:57 -0500)
committerMarc Kleine-Budde <[email protected]>
Thu, 15 Jan 2015 15:58:01 +0000 (16:58 +0100)
commit5e7e6e0c9b47a45576c38b4a72d67927a5e049f7
tree9b9b457b43a2ab90bdbc5f18e8c841755c9ce05e
parent889b77f7fd2bcc922493d73a4c51d8a851505815
can: kvaser_usb: Don't send a RESET_CHIP for non-existing channels

Recent Leaf firmware versions (>= 3.1.557) do not allow to send
commands for non-existing channels.  If a command is sent for a
non-existing channel, the firmware crashes.

Reported-by: Christopher Storah <[email protected]>
Signed-off-by: Olivier Sobrie <[email protected]>
Signed-off-by: Ahmed S. Darwish <[email protected]>
Cc: linux-stable <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
drivers/net/can/usb/kvaser_usb.c