mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
applicom: dereferencing NULL on error path
commit8bab797c6e
upstream. This is a static checker fix. The "dev" variable is always NULL after the while statement so we would be dereferencing a NULL pointer here. Fixes:819a3eba42
('[PATCH] applicom: fix error handling') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3c96691fa9
commit
b60ba82395
1 changed files with 0 additions and 1 deletions
|
@ -345,7 +345,6 @@ out:
|
|||
free_irq(apbs[i].irq, &dummy);
|
||||
iounmap(apbs[i].RamIO);
|
||||
}
|
||||
pci_disable_device(dev);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue