summaryrefslogtreecommitdiffstats
path: root/drivers/base/component.c
diff options
context:
space:
mode:
authorJimmy Assarsson <jimmyassarsson@gmail.com>2018-08-06 15:14:50 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2018-11-09 17:19:57 +0100
commit95217260649aa504eb5d4a0d50959ca4e67c8f96 (patch)
tree0db26e8a0ee4d63c0a8438360a65972187be2d14 /drivers/base/component.c
parenta43608fa77213ad5ac5f75994254b9f65d57cfa0 (diff)
downloadlinux-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/base/component.c')
0 files changed, 0 insertions, 0 deletions