[PATCH 2/2] xen-pciback: reject out of range inputs

2012-11-02 Thread Jan Beulich
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

[PATCH 2/2] xen-pciback: reject out of range inputs

2012-11-02 Thread Jan Beulich
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