kernel-fxtec-pro1x/net/netlabel
Jesper Juhl 794eb6bf20 [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>
2008-04-17 23:22:54 -07:00
..
Kconfig
Makefile
netlabel_cipso_v4.c [NETLABEL]: Move some initialization code into __init section. 2008-02-17 22:33:57 -08:00
netlabel_cipso_v4.h NetLabel: introduce a new kernel configuration API for NetLabel 2008-02-05 09:44:20 -08:00
netlabel_domainhash.c [NETLABEL]: Move some initialization code into __init section. 2008-02-17 22:33:57 -08:00
netlabel_domainhash.h NetLabel: introduce a new kernel configuration API for NetLabel 2008-02-05 09:44:20 -08:00
netlabel_kapi.c NetLabel: introduce a new kernel configuration API for NetLabel 2008-02-05 09:44:20 -08:00
netlabel_mgmt.c [NETLABEL]: Move some initialization code into __init section. 2008-02-17 22:33:57 -08:00
netlabel_mgmt.h NetLabel: Remove unneeded RCU read locks 2008-01-30 08:17:16 +11:00
netlabel_unlabeled.c [NETLABEL]: Fix NULL deref in netlbl_unlabel_staticlist_gen() if ifindex not found 2008-04-17 23:22:54 -07:00
netlabel_unlabeled.h NetLabel: Introduce static network labels for unlabeled connections 2008-01-30 08:17:28 +11:00
netlabel_user.c [NETLABEL]: Move some initialization code into __init section. 2008-02-17 22:33:57 -08:00
netlabel_user.h