can: ems_usb: improve error reporting for error warning and error passive
authorMartin Lederhilger <m.lederhilger@ds-automotion.com>
Thu, 21 Dec 2017 14:42:44 +0000 (14:42 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 4 Jan 2018 15:14:38 +0000 (16:14 +0100)
commit6ebc5e8fe85286c7392f1777a3dba9e1fd6d0253
tree606c02c669fd365cea4395766e4f68ffe9c947cb
parent13454c14550065fcc1705d6bd4ee6d40e057099f
can: ems_usb: improve error reporting for error warning and error passive

This patch adds the missing CAN_ERR_CRTL to cf->can_id in case of
CAN_STATE_ERROR_WARNING or CAN_STATE_ERROR_PASSIVE

Signed-off-by: Martin Lederhilger <m.lederhilger@ds-automotion.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/ems_usb.c