]> git.baikalelectronics.ru Git - kernel.git/commit
fbdev/core: Avoid uninitialized read in aperture_remove_conflicting_pci_device()
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Thu, 27 Oct 2022 00:06:16 +0000 (02:06 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 27 Oct 2022 07:20:05 +0000 (09:20 +0200)
commit2f4717a136ade55bd6f414312f9e83d8b6ae2286
tree40c844e9d58d5d9bc1a22d8df15c94a8acb19648
parent9ce9604b2ee7d0b16fc5b55c7c5bceb4211086c6
fbdev/core: Avoid uninitialized read in aperture_remove_conflicting_pci_device()

Return on error directly from the BAR-iterating loop instead of
break+return.

This is actually a cosmetic fix, since it would be highly unusual to
have this called for a PCI device without any memory BARs.

Fixes: 081dacd58466 ("fbdev/core: Remove remove_conflicting_pci_framebuffers()")
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/e75323732bedc46d613d72ecb40f97e3bc75eea8.1666829073.git.mirq-linux@rere.qmqm.pl
drivers/video/aperture.c