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