forked from luck/tmp_suning_uos_patched
omap: &&/|| confusion in iommu_put()
obj can't be both NULL and be an error pointer. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
4318f36b7c
commit
acf9d467dc
|
@ -827,7 +827,7 @@ EXPORT_SYMBOL_GPL(iommu_get);
|
|||
**/
|
||||
void iommu_put(struct iommu *obj)
|
||||
{
|
||||
if (!obj && IS_ERR(obj))
|
||||
if (!obj || IS_ERR(obj))
|
||||
return;
|
||||
|
||||
mutex_lock(&obj->iommu_lock);
|
||||
|
|
Loading…
Reference in New Issue
Block a user