diff options
author | Jimmy Assarsson <jimmyassarsson@gmail.com> | 2018-08-06 15:14:50 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2018-11-09 17:19:57 +0100 |
commit | 95217260649aa504eb5d4a0d50959ca4e67c8f96 (patch) | |
tree | 0db26e8a0ee4d63c0a8438360a65972187be2d14 /drivers/rtc/rtc-sirfsoc.c | |
parent | a43608fa77213ad5ac5f75994254b9f65d57cfa0 (diff) | |
download | linux-95217260649aa504eb5d4a0d50959ca4e67c8f96.tar.bz2 |
can: kvaser_usb: Fix potential uninitialized variable use
If alloc_can_err_skb() fails, cf is never initialized.
Move assignment of cf inside check.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jimmy Assarsson <jimmyassarsson@gmail.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/rtc/rtc-sirfsoc.c')
0 files changed, 0 insertions, 0 deletions