diff options
author | Doug Ledford <dledford@redhat.com> | 2016-06-07 11:43:46 (GMT) |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-06-07 13:50:52 (GMT) |
commit | 495fbae6e2c115099921ba33b1e1bea1190b5280 (patch) | |
tree | 3118b46a560246c847c4674a19084bc4f9d01d31 /lib/nlattr.c | |
parent | 41aaa99fab6ceaa4b533c2b6ad4913987ddb3ddc (diff) | |
download | linux-495fbae6e2c115099921ba33b1e1bea1190b5280.tar.xz |
IB/core: fix error unwind in sysfs hw counters code
Between the initial and final versions of the function setup_hw_stats,
the order of variable initialization was changed. However, the unwind
flow on error did not properly keep up with the flow changes. Make
the unwind flow match a proper unwind of the allocation flow, then
remove no longer needed variable initializations.
Fixes: b40f4757daa1 (IB/core: Make device counter infrastructure
dynamic)
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'lib/nlattr.c')
0 files changed, 0 insertions, 0 deletions