]> 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>
Thu, 29 Sep 2011 18:33:24 +0000 (14:33 -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 32d6891ba5711e3eb0cfda009dcc643397a1ffe0..d985b6586878752fe0e3ff1c4c3dbdcff16dc296 100644 (file)
@@ -868,7 +868,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;