patch: new patch pattern devm_regulator_get__ret.cocci

fix return value check in {{function}}

In case of error, the function devm_regulator_get() returns
ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
patch: new patch pattern pdev_reg_full__ret.cocci

fix return value check in {{function}}

In case of error, the function platform_device_register_full()
returns ERR_PTR() and never returns NULL. The NULL test in the
return value check should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
patch: update patch pattern unlock_missing.cocci

update patch pattern unlock_missing.cocci.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
report: update report pattern errptr_deref.cocci

update report pattern errptr_deref.cocci.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
patch: new patch pattern arm_iommu_cm__ret.cocci

fix return value check in {{function}}

In case of error, function arm_iommu_create_mapping() returns
ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>