]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
can: kvaser_usb: check number of channels returned by HW
authorOlivier Sobrie <olivier@sobrie.be>
Tue, 11 Feb 2014 10:01:23 +0000 (11:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 06:06:23 +0000 (22:06 -0800)
commita122e1f4c504578e1379d2808ce8a6f7e71a96db
tree46f4a533b56f4d7cb6469e3eedefe2d0c5835245
parent55e02d0a3383b15d1fcff130f83c0096e22a19b2
can: kvaser_usb: check number of channels returned by HW

commit 862474f8b46f6c1e600d4934e40ba40646c696ec upstream.

It is needed to check the number of channels returned by the HW because it
cannot be greater than MAX_NET_DEVICES otherwise it will crash.

Signed-off-by: Olivier Sobrie <olivier@sobrie.be>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/usb/kvaser_usb.c