crypto: omap-sham - potential Oops on error in probe
Subsystems (2)
PATCH 1/1 crypto: omap-sham - potential Oops on error in probe
This if statement is reversed so we end up either leaking or Oopsing on error.
drivers/crypto/omap-sham.c +1 -1
@@ -1986,7 +1986,7 @@ err_algs: &dd->pdata->algs_info[i].algs_list[j]); err_pm:pm_runtime_disable (dev); -if (dd->polling_mode) +if (!dd->polling_mode)dma_release_channel (dd->dma_lch); data_err:dev_err (dev,"initialization failed.\n" );
Quoted 2 lines · Dan Carpenter
This if statement is reversed so we end up either leaking or Oopsing on error.
Oops, sorry for that.
Probably the other omap-* crypto drivers have the same issue? Can you send a patch for them or should I do it?
Quoted 17 lines
Fixes dbe246209bc1 ('crypto: omap-sham - Use dma_request_chan() for requesting DMA channel')Signed-off-by Dan Carpenter <[email protected]>drivers/crypto/omap-sham.c +1
-1@@ -1986,7 +1986,7 @@ err_algs: &dd->pdata->algs_info[i].algs_list[j]); err_pm:pm_runtime_disable (dev); -if (dd->polling_mode) +if (!dd->polling_mode)dma_release_channel (dd->dma_lch); data_err:dev_err (dev,"initialization failed.\n" );
Signature · 5 lines
Péter -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Peter Ujfalusi
Quoted 2 lines · Dan Carpenter
This if statement is reversed so we end up either leaking or Oopsing on error.
Oops, sorry for that.
Probably the other omap-* crypto drivers have the same issue? Can you send a patch for them or should I do it?
I didn't see those static checker warnings so probably it means I can't compile the drivers. Could you do it?
regards,
dan carpenter
Quoted 11 lines · Dan Carpenter
Quoted 7 lines · Peter Ujfalusi
Quoted 2 lines · Dan Carpenter
This if statement is reversed so we end up either leaking or Oopsing on error.
Oops, sorry for that.
Probably the other omap-* crypto drivers have the same issue? Can you send a patch for them or should I do it?I didn't see those static checker warnings so probably it means I can't compile the drivers. Could you do it?
I have taken a look at omap-aes and omap-des. They are OK.
Signature · 5 lines
Péter -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Herbert Xu
maintainerQuoted 5 lines · Dan Carpenter
This if statement is reversed so we end up either leaking or Oopsing on error.
Fixes dbe246209bc1 ('crypto: omap-sham - Use dma_request_chan() for requesting DMA channel')Signed-off-by Dan Carpenter <[email protected]>
Patch applied. Thanks!
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt