summaryrefslogtreecommitdiff
path: root/tools/perf/util/llvm-utils.c
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2018-07-09 09:24:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-24 14:09:15 +0300
commitcab718feb18f6e4900f8951e966804d988d39a2d (patch)
treea420a063bc512c1c3b1b97b8592e23bbeb625ce4 /tools/perf/util/llvm-utils.c
parent822bbc4c7966392501d43f9f205a6af09e492567 (diff)
downloadlinux-cab718feb18f6e4900f8951e966804d988d39a2d.tar.xz
bnxt_en: Always set output parameters in bnxt_get_max_rings().
[ Upstream commit 78f058a4aa0f2280dc4d45d2c4a95728398ef857 ] The current code returns -ENOMEM and does not bother to set the output parameters to 0 when no rings are available. Some callers, such as bnxt_get_channels() will display garbage ring numbers when that happens. Fix it by always setting the output parameters. Fixes: 6e6c5a57fbe1 ("bnxt_en: Modify bnxt_get_max_rings() to support shared or non shared rings.") Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/util/llvm-utils.c')
0 files changed, 0 insertions, 0 deletions