aboutsummaryrefslogtreecommitdiff
path: root/drivers/firmware/efi/dev-path-parser.c
diff options
context:
space:
mode:
authorChristophe Jaillet <[email protected]>2017-09-23 08:44:15 +0200
committerGuenter Roeck <[email protected]>2017-10-01 08:46:54 -0700
commit74007ae6316ebe40260e44f8ab558f9b1ccc04e5 (patch)
tree4d5b01ecdd6263d930608d98037e7d5146a6b628 /drivers/firmware/efi/dev-path-parser.c
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff)
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/firmware/efi/dev-path-parser.c')
0 files changed, 0 insertions, 0 deletions