summary refs log tree commit diff
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-07-31 18:09:14 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-10 09:32:53 +0100
commitf61744f7b45dc9fcdcfcbc23d24d4024a99b2b21 (patch)
tree67d247e41bf897669a5d790e67e24d416b93b67f /drivers/macintosh
parentec75af7e811dc4f198db2ce6fc40f75d8cb83cf2 (diff)
downloadlinux-f61744f7b45dc9fcdcfcbc23d24d4024a99b2b21.tar.gz
s390/vfio-ap: fix an error handling path in vfio_ap_mdev_probe_queue()
[ Upstream commit 08866d34c7099e981918d34aab5d6a437436628f ]

The commit in Fixes: has switch the order of a sysfs_create_group() and a
kzalloc().

It correctly removed the now useless kfree() but forgot to add a
sysfs_remove_group() in case of (unlikely) memory allocation failure.

Add it now.

Fixes: 260f3ea14138 ("s390/vfio-ap: move probe and remove callbacks to vfio_ap_ops.c")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Link: https://lore.kernel.org/r/d0c0a35eec4fa87cb7f3910d8ac4dc0f7dc9008a.1659283738.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions