xen-pciback: simplify and tighten parsing of device IDs
authorJan Beulich <JBeulich@suse.com>
Fri, 2 Nov 2012 14:36:38 +0000 (14:36 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 2 Nov 2012 15:04:02 +0000 (11:04 -0400)
commit5b71fbdc64225b7a86944f4f0de80e59071187c7
tree4a3ea77d3a531194d55156252aa12e430132be0a
parent9d02b43dee0d7fb18dfb13a00915550b1a3daa9f
xen-pciback: simplify and tighten parsing of device IDs

Now that at least one of the conformance problems of the kernel's
sscanf() was addressed (commit da99075c1d368315e1508b6143226c0d27b621e0),
we can improve the parsing done in xen-pciback both in terms of code
readability and correctness (in particular properly rejecting input
strings not well formed).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xen-pciback/pci_stub.c