1
linux/net
David S. Miller 7b34ca2ac7 inet: Avoid potential NULL peer dereference.
We handle NULL in rt{,6}_set_peer but then our caller will try to pass
that NULL pointer into inet_putpeer() which isn't ready for it.

Fix this by moving the NULL check one level up, and then remove the
now unnecessary NULL check from inetpeer_ptr_set_peer().

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-06-11 04:13:57 -07:00
..
9p net/9p: Add __force to cast of __user pointer 2012-06-04 13:51:17 -04:00
802
8021q
appletalk
atm net: Remove casts to same type 2012-06-04 11:45:11 -04:00
ax25 net: use consume_skb() in place of kfree_skb() 2012-06-04 11:27:40 -04:00
batman-adv
bluetooth Bluetooth: Fix checking the wrong flag when accepting a socket 2012-06-05 06:26:26 +03:00
bridge
caif Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2012-05-22 19:22:50 -07:00
can can: update documentation wording error frames -> error messages 2012-05-23 22:55:49 +02:00
ceph Merge git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client 2012-05-30 11:17:19 -07:00
core Added kernel support in EEE Ethtool commands 2012-06-07 13:18:54 -07:00
dcb
dccp
decnet net: Remove casts to same type 2012-06-04 11:45:11 -04:00
dns_resolver Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2012-05-21 20:27:36 -07:00
dsa
ethernet
ieee802154
ipv4 inet: Avoid potential NULL peer dereference. 2012-06-11 04:13:57 -07:00
ipv6 inet: Avoid potential NULL peer dereference. 2012-06-11 04:13:57 -07:00
ipx
irda net: Remove casts to same type 2012-06-04 11:45:11 -04:00
iucv
key
l2tp net: Remove casts to same type 2012-06-04 11:45:11 -04:00
lapb
llc
mac80211 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-06-06 15:06:41 -07:00
mac802154
netfilter net: Remove casts to same type 2012-06-04 11:45:11 -04:00
netlabel
netlink genetlink: Build a generic netlink family module alias 2012-05-29 22:33:56 -04:00
netrom
nfc
openvswitch
packet net: Remove casts to same type 2012-06-04 11:45:11 -04:00
phonet
rds rds_rdma: don't assume infiniband device is PCI 2012-05-29 17:30:07 -04:00
rfkill
rose
rxrpc ipv4: Kill ip_rt_frag_needed(). 2012-06-11 02:08:59 -07:00
sched sch_atm.c: get rid of poinless extern 2012-06-01 10:37:18 -04:00
sctp
sunrpc Merge branch 'for-3.5' of git://linux-nfs.org/~bfields/linux 2012-06-01 08:32:58 -07:00
tipc net: Remove casts to same type 2012-06-04 11:45:11 -04:00
unix af_unix: remove unix_iter_state 2012-06-09 19:06:21 -07:00
wanrouter net/wanrouter: Deprecate and schedule for removal 2012-05-24 16:22:53 -04:00
wimax
wireless cfg80211: fix interface combinations check 2012-06-05 14:27:30 -04:00
x25
xfrm ipv6: fix incorrect ipsec fragment 2012-05-27 01:11:22 -04:00
compat.c Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2012-05-21 20:27:36 -07:00
Kconfig
Makefile
nonet.c
socket.c Merge branch 'for-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu 2012-05-22 17:37:47 -07:00
sysctl_net.c