diff options
author | 2022-09-18 22:59:27 +0200 | |
---|---|---|
committer | 2022-09-23 13:55:00 +0200 | |
commit | 68822f4e74f35168134b0d3ad7e536a15f42ba04 (patch) | |
tree | ce5f055f21dd80e33736b51072de28daf59705b9 /net/core/xdp.c | |
parent | can: gs_usb: convert from usb_control_msg() to usb_control_msg_{send,recv}() (diff) | |
download | wireguard-linux-68822f4e74f35168134b0d3ad7e536a15f42ba04.tar.xz wireguard-linux-68822f4e74f35168134b0d3ad7e536a15f42ba04.zip |
can: gs_usb: gs_make_candev(): clean up error handling
Introduce a label to free the allocated candev in case of an error and
make use of if. Fix a memory leak if the extended bit timing cannot be
read. Extend the error messages to print the number of the failing
channel and the symbolic error name.
Link: https://lore.kernel.org/all/20220921193902.575416-4-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/core/xdp.c')
0 files changed, 0 insertions, 0 deletions