[Nouveau] [PATCH] drm/nouveau/tegra: Modify error handling

Alexandre Courbot gnurou at gmail.com
Tue Aug 23 17:13:02 UTC 2016


On Mon, Aug 15, 2016 at 6:54 AM, Amitoj Kaur Chawla
<amitoj1606 at gmail.com> wrote:
> iommu_domain_alloc returns NULL on error so replace an incorrect
> IS_ERR check with a NULL check.
>
> The Coccinelle semantic patch used to find this issue is as follows:
> @@
> expression e;
> statement S;
> @@
>
> *e = iommu_domain_alloc(...);
> if (IS_ERR(e)) S
>
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606 at gmail.com>

Reviewed-by: Alexandre Courbot <acourbot at nvidia.com>


More information about the Nouveau mailing list