Commit 225ee68
committed
HID: amd_sfh: Fix warning unwind goto
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2122844
Upstream Status: since Not upstream
Tested: with the hid-tools test suite and some hardware
commit 2a33ad4
Author: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Date: Mon Jan 2 22:00:42 2023 +0530
HID: amd_sfh: Fix warning unwind goto
Return directly instead of using existing goto will not cleanup
previously allocated resources. Hence replace return with goto
to fix warning unwind goto which cleanups previously allocated
resources.
Fixes: 93ce5e0 ("HID: amd_sfh: Implement SFH1.1 functionality")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>1 parent 3d1d756 commit 225ee68
File tree
2 files changed
+2
-2
lines changed- drivers/hid/amd-sfh-hid
- sfh1_1
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
0 commit comments