summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2024-10-04 09:52:47 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2024-10-10 09:03:21 +0200
commit2d6d8b138f241c29da7c122918556e45e67f2660 (patch)
tree8a8cb72ed94ff7cac355635561f19946a925b960 /tools/perf/scripts/python/gecko.py
parent6b3815c6815f07acc7eeffa8ae734d1a1c0ee817 (diff)
drm/bochs: Return error from correct pointer
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 <kees@ijzerbout.nl> Closes: https://lore.kernel.org/dri-devel/8c5bfc12-cbcc-4102-9826-494060df4179@ijzerbout.nl/ Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Fixes: 04826f588682 ("drm/bochs: Allocate DRM device in struct bochs_device") Cc: Thomas Zimmermann <tzimmermann@suse.de> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: virtualization@lists.linux.dev Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241004075404.41743-1-tzimmermann@suse.de
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions