can: bcm: initialize ifindex for timeouts without previous frame reception
authorOliver Hartkopp <socketcan@hartkopp.net>
Mon, 26 Nov 2012 21:24:23 +0000 (22:24 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 26 Nov 2012 21:33:59 +0000 (22:33 +0100)
commit81b401100c01d2357031e874689f89bd788d13cd
tree081d69bac38887af2506d0aa086eb99a2e1b2ba6
parentc9faaa09e2a1335678f09c70a0d0eda095564bab
can: bcm: initialize ifindex for timeouts without previous frame reception

Set in the rx_ifindex to pass the correct interface index in the case of a
message timeout detection. Usually the rx_ifindex value is set at receive
time. But when no CAN frame has been received the RX_TIMEOUT notification
did not contain a valid value.

Cc: linux-stable <stable@vger.kernel.org>
Reported-by: Andre Naujoks <nautsch2@googlemail.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/bcm.c