]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen-pciback: fix error return code in pcistub_irq_handler_switch()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 31 May 2013 11:59:20 +0000 (19:59 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 4 Jun 2013 13:13:07 +0000 (09:13 -0400)
commitae529a98c7ad50eb88ed9c28d16af6e244aa67ed
tree72b7318c776534a24524d078222cd872f49cd9c9
parent466318a87f28cb3ba0d08a3b7ef1a37ae73d5aa7
xen-pciback: fix error return code in pcistub_irq_handler_switch()

Fix to return -ENOENT in the pcistub_device_find() and pci_get_drvdata()
error handling case instead of 0(overwrite to 0 by str_to_slot()), as done
elsewhere in this function.

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