mbox series

[0/2] can: Fix the error handling in c_can_power_up and kvaser_pciefd_open

Message ID 20201128133922.3276973-1-zhangqilong3@huawei.com (mailing list archive)
Headers show
Series can: Fix the error handling in c_can_power_up and kvaser_pciefd_open | expand

Message

Zhang Qilong Nov. 28, 2020, 1:39 p.m. UTC
The patch series fix the error handling to avoid the reference
leak and wrong state for the net device.

Zhang Qilong (2):
  can: c_can: Fix error handling in c_can_power_up
  can: kvaser_pciefd: Fix error handling in kvaser_pciefd_open

 drivers/net/can/c_can/c_can.c   | 18 ++++++++++++++----
 drivers/net/can/kvaser_pciefd.c |  4 +++-
 2 files changed, 17 insertions(+), 5 deletions(-)

Comments

Marc Kleine-Budde Nov. 30, 2020, 11:49 a.m. UTC | #1
On 11/28/20 2:39 PM, Zhang Qilong wrote:
> The patch series fix the error handling to avoid the reference
> leak and wrong state for the net device.
> 
> Zhang Qilong (2):
>   can: c_can: Fix error handling in c_can_power_up
>   can: kvaser_pciefd: Fix error handling in kvaser_pciefd_open
> 
>  drivers/net/can/c_can/c_can.c   | 18 ++++++++++++++----
>  drivers/net/can/kvaser_pciefd.c |  4 +++-
>  2 files changed, 17 insertions(+), 5 deletions(-)

Applied to linux-can/testing.

Tnx,
Marc