diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-10-19 23:11:11 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-22 19:34:16 -0700 |
commit | c94f026fb742b2d3199422751dbc4f6fc0e753d8 (patch) | |
tree | 42ed85d44adbfc3d235f45c6a627758187d466d1 /kernel | |
parent | de46e92af4461decff2288a1e97e47cd9e82f783 (diff) | |
download | lwn-c94f026fb742b2d3199422751dbc4f6fc0e753d8.tar.gz lwn-c94f026fb742b2d3199422751dbc4f6fc0e753d8.zip |
qlcnic: fix a return in qlcnic_dcb_get_capability()
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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions