From: Thomas Chou Date: Sun, 23 May 2010 16:44:02 +0000 (+0000) Subject: ethoc: fix null dereference in ethoc_probe X-Git-Tag: v2.6.35-rc1~260^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee02a4ef40f2e049c80f9cc04e21a9b48288b6ff;p=pandora-kernel.git ethoc: fix null dereference in ethoc_probe Dan reported the patch 0baa080c75c: "ethoc: use system memory as buffer" introduced a potential null dereference. 1060 free: 1061 if (priv->dma_alloc) ^^^^^^^^^^^^^^^ priv can be null here. He also suggested that the error handling is not complete. This patch fixes the null priv issue and improves resources releasing in ethoc_probe() and ethoc_remove(). Reported-by: Dan Carpenter Signed-off-by: Thomas Chou Signed-off-by: David S. Miller --- Reading git-diff-tree failed