diff options
author | Jan Beulich <JBeulich@suse.com> | 2012-11-02 14:37:13 +0000 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-11-02 11:04:03 -0400 |
commit | b3e40b72bb24237b0aee9f6ba2e9f88dd4ff3c0a (patch) | |
tree | 67b38a9e693d4af602b1c05e867c0487c5fc9cf5 /drivers/xen/Makefile | |
parent | 5b71fbdc64225b7a86944f4f0de80e59071187c7 (diff) | |
download | lwn-b3e40b72bb24237b0aee9f6ba2e9f88dd4ff3c0a.tar.gz lwn-b3e40b72bb24237b0aee9f6ba2e9f88dd4ff3c0a.zip |
xen-pciback: reject out of range inputs
This add checks for out of range numbers (including in cases where the
folding of slot and function into a single value could yield false
matches).
It also removes the bogus field width restrictions in str_to_quirk() -
nowhere else in the driver this is being done, and hence this function
could reject input the equivalent of which would be happily accepted
in other places (in particular, "0x" prefixes causing the effective
width of the actual number to be either zero or less than what would be
required to cover the full range of valid values). Note that for the
moment this second part is cosmetic only, as the kernel's sscanf()
currently ignores the field widths, but a patch to overcome this is on
its way.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/Makefile')
0 files changed, 0 insertions, 0 deletions