diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-10-19 23:11:11 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-01 09:16:55 +0100 |
| commit | 7c011435110f150abba12ab187c131fa902e2520 (patch) | |
| tree | 45e070da1434482b07f59ea7808da63b1cbc8d3b /include/linux/mfd | |
| parent | 321c40dce58185672882e9250ce333eec1f91886 (diff) | |
qlcnic: fix a return in qlcnic_dcb_get_capability()
[ Upstream commit c94f026fb742b2d3199422751dbc4f6fc0e753d8 ]
These functions are supposed to return one on failure and zero on
success. Returning a zero here could cause uninitialized variable
bugs in several of the callers. For example:
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:1660 get_iscsi_dcb_priority()
error: uninitialized symbol 'caps'.
Fixes: 48365e485275 ("qlcnic: dcb: Add support for CEE Netlink interface.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/mfd')
0 files changed, 0 insertions, 0 deletions
