]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
xen/pciback: Return proper error code from sscanf.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 29 Sep 2011 17:30:55 +0000 (13:30 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 3 Oct 2011 16:14:47 +0000 (12:14 -0400)
.. instead of just hardcoding it to be -EINVAL.

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

index 2d4286ed6641b858af93e60f92e01bed6b78ee8c..c4754d5aaa8afdcb33ecc35553d293e3d891b480 100644 (file)
@@ -864,7 +864,7 @@ static inline int str_to_slot(const char *buf, int *domain, int *bus,
        if (err == 4)
                return 0;
        else if (err < 0)
-               return -EINVAL;
+               return err;
 
        /* try again without domain */
        *domain = 0;