aboutsummaryrefslogtreecommitdiffstats
path: root/include/xen
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2012-11-02 14:37:13 +0000
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-11-02 11:04:03 -0400
commitb3e40b72bb24237b0aee9f6ba2e9f88dd4ff3c0a (patch)
tree67b38a9e693d4af602b1c05e867c0487c5fc9cf5 /include/xen
parentxen-pciback: simplify and tighten parsing of device IDs (diff)
downloadlinux-dev-b3e40b72bb24237b0aee9f6ba2e9f88dd4ff3c0a.tar.xz
linux-dev-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 'include/xen')
0 files changed, 0 insertions, 0 deletions