summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-sa1111.c
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2008-04-18 08:22:54 +0200
committerDavid S. Miller <davem@davemloft.net>2008-04-18 08:22:54 +0200
commit794eb6bf20ebf992c040ea831cd3a9c64b0c1f7a (patch)
tree41d710fe62265b95b2e3e0cd9fa49d5ffe65fb81 /drivers/usb/host/ohci-sa1111.c
parent[PKT_SCHED]: Fix datalen check in tcf_simp_init(). (diff)
downloadlinux-794eb6bf20ebf992c040ea831cd3a9c64b0c1f7a.tar.xz
linux-794eb6bf20ebf992c040ea831cd3a9c64b0c1f7a.zip
[NETLABEL]: Fix NULL deref in netlbl_unlabel_staticlist_gen() if ifindex not found
dev_get_by_index() may return NULL if nothing is found. In net/netlabel/netlabel_unlabeled.c::netlbl_unlabel_staticlist_gen() the function is called, but the return value is never checked. If it returns NULL then we'll deref a NULL pointer on the very next line. I checked the callers, and I don't think this can actually happen today, but code changes over time and in the future it might happen and it does no harm to be defensive and check for the failure, so that if/when it happens we'll fail gracefully instead of crashing. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Acked-by: Paul Moore <paul.moore@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/usb/host/ohci-sa1111.c')
0 files changed, 0 insertions, 0 deletions