On Fri, Nov 15, 2013 at 10:31:25AM +0800, Jeff Liu wrote: > From: Jie Liu <jeff.liu@xxxxxxxxxx> > > In skcipher_alloc_sgl(), there is a potential null pointer dereference > issue to retrieve the last item from ctx->tsgl list if the list is empty. > > This patch fix it by checking if the list is empty or not at first. > > Signed-off-by: Jie Liu <jeff.liu@xxxxxxxxxx> Were you actually able to make this crash? -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html