Searched hist:a75fa128236bc2fdaa5e412145cbd577e42e14c2 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/misc/ |
H A D | pch_phub.c | diff a75fa128236bc2fdaa5e412145cbd577e42e14c2 Sat Feb 27 08:52:22 CST 2016 Colin Ian King <colin.king@canonical.com> pch_phub: return -ENODATA if ROM can't be mapped
The error return err is not initialized for the case when pci_map_rom fails and no ROM can me mapped. Fix this by setting ret to -ENODATA; (this is the same error value that is returned if the ROM data is successfully mapped but does not match the expected ROM signature.).
Issue found from static code analysis using CoverityScan.
Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|