diff options
| author | Christophe Jaillet <[email protected]> | 2017-09-23 06:44:15 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2017-10-01 15:46:54 +0000 |
| commit | 74007ae6316ebe40260e44f8ab558f9b1ccc04e5 (patch) | |
| tree | 4d5b01ecdd6263d930608d98037e7d5146a6b628 /drivers/tty/serial/sccnxp.c | |
| parent | Linux 4.14-rc1 (diff) | |
| download | kernel-74007ae6316ebe40260e44f8ab558f9b1ccc04e5.tar.gz kernel-74007ae6316ebe40260e44f8ab558f9b1ccc04e5.zip | |
hwmon: (xgene) Fix up error handling path mixup in 'xgene_hwmon_probe()'
Commit 2ca492e22cb7 has moved the call to 'kfifo_alloc()' from after the
main 'if' statement to before it.
But it has not updated the error handling paths accordingly.
Fix all that:
- if 'kfifo_alloc()' fails we can return directly
- direct returns after 'kfifo_alloc()' must now go to 'out_mbox_free'
- 'goto out_mbox_free' must be replaced by 'goto out', otherwise the
'[pcc_]mbox_free_channel()' call will be missed.
Fixes: 2ca492e22cb7 ("hwmon: (xgene) Fix crash when alarm occurs before driver probe")
Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions
