]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/VGA: Pass errors from pci_set_vga_state() up
authorSimon Richter <Simon.Richter@hogyros.de>
Sat, 7 Mar 2026 17:35:35 +0000 (02:35 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 25 Mar 2026 18:28:49 +0000 (13:28 -0500)
commit94555ea9a0488c5c1bba90242cfa149a84a8928d
tree5a58168c12e223d5bf6c383d4d7a0cc94431e58a
parent2a93c9851b2bb38614fadd84aa674b7a5c8181c6
PCI/VGA: Pass errors from pci_set_vga_state() up

pci_set_vga_state() returns an error code, which so far has been ignored by
the only caller, __vga_tryget(), so forward it to the caller. As the return
type of __vga_tryget() is a pointer, wrap the error in ERR_PTR().

Signed-off-by: Simon Richter <Simon.Richter@hogyros.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260307173538.763188-3-Simon.Richter@hogyros.de
drivers/pci/vgaarb.c