summaryrefslogtreecommitdiffstats
path: root/drivers/net/bfin_mac.c
diff options
context:
space:
mode:
authorThomas Chou2010-05-23 18:44:02 +0200
committerDavid S. Miller2010-05-24 08:11:09 +0200
commitee02a4ef40f2e049c80f9cc04e21a9b48288b6ff (patch)
tree26a6accadf8b370425b7c7c5e15351375a1fbf10 /drivers/net/bfin_mac.c
parentrtnetlink: Fix error handling in do_setlink() (diff)
downloadkernel-qcow2-linux-ee02a4ef40f2e049c80f9cc04e21a9b48288b6ff.tar.gz
kernel-qcow2-linux-ee02a4ef40f2e049c80f9cc04e21a9b48288b6ff.tar.xz
kernel-qcow2-linux-ee02a4ef40f2e049c80f9cc04e21a9b48288b6ff.zip
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 <error27@gmail.com> Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bfin_mac.c')
0 files changed, 0 insertions, 0 deletions