]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Dec 2012 11:20:36 +0000 (11:20 +0000)
commita548ee1595d834f795f8c9688f516d48b0304ddf
tree53fbe1d6eaae65410f5a20740851bc10cd435df9
parent3b830a12b24fcfd9d241de936b9b11e3b23e9c23
can: bcm: initialize ifindex for timeouts without previous frame reception

commit 81b401100c01d2357031e874689f89bd788d13cd upstream.

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.

Reported-by: Andre Naujoks <nautsch2@googlemail.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/can/bcm.c