]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bochs: Fix some error handling paths in bochs_pci_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 18 Jun 2022 15:26:08 +0000 (17:26 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 19 Jul 2022 12:40:59 +0000 (14:40 +0200)
commit0049b0a7b46d8e40cacfb80a6ba98f27e3b57e3d
tree7b897691950a8288ab76a5ded5376b22e3671f97
parent9d02191c73bf02c27263b07e057ba716980acd00
drm/bochs: Fix some error handling paths in bochs_pci_probe()

The remove() function calls bochs_hw_fini() but this function is not called
in the error handling of the probe.

This call releases the resources allocated by bochs_hw_init() used in
bochs_load().

Update the probe and bochs_load() to call bochs_hw_fini() if an error
occurs after a successful bochs_hw_init() call.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: http://patchwork.freedesktop.org/patch/msgid/0e676e4d56ab5b10fcf22860081414445611dfa7.1655565953.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/tiny/bochs.c