]> git.ipfire.org Git - thirdparty/grub.git/commit
commands/setpci: Honor write mask argument
authorWouter van Kesteren <woutershep@gmail.com>
Thu, 12 Aug 2021 14:56:13 +0000 (16:56 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 6 Sep 2021 13:08:23 +0000 (15:08 +0200)
commite8b98cc66b7cb4b4123d1039d2e3df4d2fc5d44f
treeed7ab999cae95a758eec0cf94167b199c1847aae
parent1ea4e5ef09c06552402bf676ce262a661372f08d
commands/setpci: Honor write mask argument

In the case that one passes a write mask with ":" the write_mask is
obtained from grub_strtoul() and then promptly overwritten by 0xffffffff
three lines later.

This appears to have been so since the initial version of setpci in 2009.
I'm surprised no one else has hit this issue in the past 12 years...

Signed-off-by: Wouter van Kesteren <woutershep@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/commands/setpci.c