Skip to content
Commit 8f48dbd6 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Gerd Hoffmann
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: http://patchwork.freedesktop.org/patch/msgid/0e676e4d56ab5b10fcf22860081414445611dfa7.1655565953.git.christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 90caf425
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment