From: Mark A. Greer Date: Tue, 12 Nov 2013 20:12:27 +0000 (-0700) Subject: crypto: omap-sham - Only release DMA channel if successfully requested X-Git-Tag: v3.14-rc1~117^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f13ab86a6123cc85c072253769fcaac72949ae93;p=pandora-kernel.git crypto: omap-sham - Only release DMA channel if successfully requested In omap_sham_probe() and omap_sham_remove(), 'dd->dma_lch' is released without checking to see if it was successfully requested or not. This is a bug and was identified and reported by Dan Carpenter here: http://www.spinics.net/lists/devicetree/msg11023.html Add code to only release 'dd->dma_lch' when its not NULL (that is, when it was successfully requested). Reported-by: Dan Carpenter CC: Joel Fernandes Signed-off-by: Mark A. Greer Signed-off-by: Herbert Xu --- Reading git-diff-tree failed