staging: imx-media-vdic: fix inconsistent IS_ERR and PTR_ERR
PATCH 1/1 staging: imx-media-vdic: fix inconsistent IS_ERR and PTR_ERR
Fix inconsistent IS_ERR and PTR_ERR in vdic_get_ipu_resources. The proper pointer to be passed as argument is ch.
This issue was detected with the help of Coccinelle.
--- drivers/staging/media/imx/imx-media-vdic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/imx/imx-media-vdic.c +1 -1
@@ -177,7 +177,7 @@ static int vdic_get_ipu_resources(struct vdic_priv *priv) priv->vdi_in_ch = ch; ch =ipu_idmac_get (priv->ipu,IPUV3_CHANNEL_MEM_VDI_NEXT ); -if (IS_ERR (priv->vdi_in_ch_n)) { +if (IS_ERR (ch)) { err_chan =IPUV3_CHANNEL_MEM_VDI_NEXT ; ret =PTR_ERR (ch); goto out_err_chan;
Signature · 1 line
2.7.4
Quoted 16 lines · Gustavo A. R. Silva
Fix inconsistent
IS_ERRandPTR_ERRinvdic_get_ipu_resources. The proper pointer to be passed as argument is ch.This issue was detected with the help of Coccinelle.
Fixes 0b2e9e7947e7 ("media: staging/imx: remove confusing IS_ERR_OR_NULL usage")Signed-off-by Gustavo A. R. Silva <[email protected]>--- drivers/staging/media/imx/imx-media-vdic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/media/imx/imx-media-vdic.c +0
-0
drivers/staging/media/imx/imx-media-vdic.c static int vdic_get_ipu_resources(struct vdic_priv *priv) · line 183
Quoted 8 lines
drivers/staging/media/imx/imx-media-vdic.c +1
-1@@ -177,7 +177,7 @@ static int vdic_get_ipu_resources(struct vdic_priv *priv) priv->vdi_in_ch = ch; ch =ipu_idmac_get (priv->ipu,IPUV3_CHANNEL_MEM_VDI_NEXT ); -if (IS_ERR (priv->vdi_in_ch_n)) { +if (IS_ERR (ch)) { err_chan =IPUV3_CHANNEL_MEM_VDI_NEXT ; ret =PTR_ERR (ch); goto out_err_chan;
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Quoted 7 lines · Gustavo A. R. Silva
Fix inconsistent
IS_ERRandPTR_ERRinvdic_get_ipu_resources. The proper pointer to be passed as argument is ch.This issue was detected with the help of Coccinelle.
Fixes 0b2e9e7947e7 ("media: staging/imx: remove confusing IS_ERR_OR_NULL usage")Signed-off-by Gustavo A. R. Silva <[email protected]>
good catch!
Quoting Arnd Bergmann <[email protected]>:
Quoted 5 lines
Quoted 3 lines · Gustavo A. R. Silva
Fix inconsistent
IS_ERRandPTR_ERRinvdic_get_ipu_resources. The proper pointer to be passed as argument is ch.
Quoted 7 lines
Quoted 4 lines
This issue was detected with the help of Coccinelle.
Fixes 0b2e9e7947e7 ("media: staging/imx: remove confusing IS_ERR_OR_NULL usage")Signed-off-by Gustavo A. R. Silva <[email protected]>good catch!
:)
Quoted 1 line
Acked-by Arnd Bergmann <[email protected]>
Thanks, Arnd.
--
Gustavo
Hi all,
I was just wondering about the status of this patch.
Thanks
--
Gustavo
Quoted 29 lines · Steve Longerbeam
Acked-by Steve Longerbeam <[email protected]>Quoted 24 lines · Gustavo A. R. Silva
Fix inconsistent
IS_ERRandPTR_ERRinvdic_get_ipu_resources. The proper pointer to be passed as argument is ch.This issue was detected with the help of Coccinelle.
Fixes 0b2e9e7947e7 ("media: staging/imx: remove confusing IS_ERR_OR_NULL usage")Signed-off-by Gustavo A. R. Silva <[email protected]>---
drivers/staging/media/imx/imx-media-vdic.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/media/imx/imx-media-vdic.c +1
-1@@ -177,7 +177,7 @@ static int vdic_get_ipu_resources(struct vdic_priv *priv) priv->vdi_in_ch = ch; ch = ipu_idmac_get(priv->ipu, IPUV3_CHANNEL_MEM_VDI_NEXT); - if (IS_ERR(priv->vdi_in_ch_n)) { + if (IS_ERR(ch)) { err_chan = IPUV3_CHANNEL_MEM_VDI_NEXT; ret = PTR_ERR(ch); goto out_err_chan;
Philipp Zabel
maintainerHi Gustavo,
Quoted 3 lines · Gustavo A. R. Silva
Hi all,
I was just wondering about the status of this patch.
It is en route as commit dcd71a9292b1 ("staging: imx-media-vdic: fix inconsistent IS_ERR and PTR_ERR") in Hans' for-v4.17a branch:
git://linuxtv.org/hverkuil/media_tree.git for-v4.17a
regards
Philipp
Hi Philipp,
Quoted 11 lines · Philipp Zabel
Hi Gustavo,
Quoted 3 lines · Gustavo A. R. Silva
Hi all,
I was just wondering about the status of this patch.
It is en route as commit
dcd71a9292b1("staging: imx-media-vdic: fix inconsistentIS_ERRandPTR_ERR") in Hans' for-v4.17a branch:
git://linuxtv.org/hverkuil/media_tree.gitfor-v4.17a
Awesome.
Thanks for the info.
--
Gustavo