From: Prarit Bhargava Date: Wed, 20 Mar 2013 12:04:43 +0000 (+0000) Subject: PCI: aer_inject: Fix return values when device not found X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~143^2~4^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e82b14bdd390c534750a191f9936f842bab255d4;p=pandora-kernel.git PCI: aer_inject: Fix return values when device not found Currently the aer_inject driver returns -ENOTTY when the target PCIe device root port is not found or if the device or root port doesn't support AER. In the case where the root port isn't found, the driver should return -ENODEV, and in the other cases it should return -EPERM. Signed-off-by: Prarit Bhargava Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed