On 1/24/2018 4:50 PM, Bryan O'Donoghue wrote: > From: Rui Miguel Silva <rui.si...@linaro.org> > > caam_remove already removes the debugfs entry, so we need to remove the one > immediately before calling caam_remove. > > This fix a NULL dereference at error paths is caam_probe fail. > > [bod: changed name prefix to "crypto: caam: Fix .."] > [bod: added Fixes tag] > > Fixes: 67c2315def06 ("crypto: caam - add Queue Interface (QI) backend > support") Cc: <sta...@vger.kernel.org> # 4.12+
> > Tested-by: Ryan Harkin <ryan.har...@linaro.org> > Signed-off-by: Rui Miguel Silva <rui.si...@linaro.org> > Cc: "Horia Geantă" <horia.gea...@nxp.com> > Cc: Aymen Sghaier <aymen.sgha...@nxp.com> > Cc: Fabio Estevam <fabio.este...@nxp.com> > Cc: Peng Fan <peng....@nxp.com> > Cc: Herbert Xu <herb...@gondor.apana.org.au> > Cc: "David S. Miller" <da...@davemloft.net> > Cc: Lukas Auer <lukas.a...@aisec.fraunhofer.de> > Signed-off-by: Bryan O'Donoghue <pure.lo...@nexus-software.ie> Reviewed-by: Horia Geantă <horia.gea...@nxp.com> Thanks, Horia