Thomas Zimmermann <tzimmerm...@suse.de> writes:

Hello Thomas,

> In probe, return the error code from the variable bochs, not dev. The
> variable dev has not been initialized at this point. In the case of an
> allocation error, the returned value would have been undefined.
>
> Reported-by: Kees Bakker <k...@ijzerbout.nl>
> Closes: 
> https://lore.kernel.org/dri-devel/8c5bfc12-cbcc-4102-9826-494060df4...@ijzerbout.nl/
> Signed-off-by: Thomas Zimmermann <tzimmerm...@suse.de>
> Fixes: 04826f588682 ("drm/bochs: Allocate DRM device in struct bochs_device")
> Cc: Thomas Zimmermann <tzimmerm...@suse.de>
> Cc: Gerd Hoffmann <kra...@redhat.com>
> Cc: virtualizat...@lists.linux.dev
> ---

Reviewed-by: Javier Martinez Canillas <javi...@redhat.com>

-- 
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat

Reply via email to