]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
staging: fsl-dpaa2/ethsw: Fix uninitialized variables
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Thu, 30 Aug 2018 13:17:08 +0000 (16:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 08:38:17 +0000 (10:38 +0200)
commit13b72b089b9c9520a6ebeb388436a9ee14322279
tree579ae2eda6031b7a69ae88b6cc6b80e6b584f14d
parentb972c798fbab3a17088e637b1bfb63972a0aaca7
staging: fsl-dpaa2/ethsw: Fix uninitialized variables

Functions port_vlans_add() and port_vlans_del() could,
in theory, return an uninitialized variable. Fix this
by initializing the variable in question at declaration.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethsw/ethsw.c