aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>2017-09-23 08:44:15 +0200
committerGuenter Roeck <linux@roeck-us.net>2017-10-01 08:46:54 -0700
commit74007ae6316ebe40260e44f8ab558f9b1ccc04e5 (patch)
tree4d5b01ecdd6263d930608d98037e7d5146a6b628 /Documentation
parentLinux 4.14-rc1 (diff)
downloadlinux-dev-74007ae6316ebe40260e44f8ab558f9b1ccc04e5.tar.xz
linux-dev-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 <christophe.jaillet@wanadoo.fr> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions