OpenCloudOS-Kernel/net/core
Patrick McHardy 26932566a4 [NETLINK]: Don't BUG on undersized allocations
Currently netlink users BUG when the allocated skb for an event
notification is undersized. While this is certainly a kernel bug,
its not critical and crashing the kernel is too drastic, especially
when considering that these errors have appeared multiple times in
the past and it BUGs even if no listeners are present.

This patch replaces BUG by WARN_ON and changes the notification
functions to inform potential listeners of undersized allocations
using a unique error code (EMSGSIZE).

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-02-08 12:38:41 -08:00
..
Makefile [NET]: The scheduled removal of the frame diverter. 2006-12-02 21:22:23 -08:00
datagram.c [NET]: Annotate __skb_checksum_complete() and friends. 2006-12-02 21:23:38 -08:00
dev.c Network: convert network devices to use struct device instead of class_device 2007-02-07 10:37:11 -08:00
dev_mcast.c [NET]: Remove unnecessary config.h includes from net/ 2006-09-22 14:54:21 -07:00
dst.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
ethtool.c [ETHTOOL]: Remove some entries from non-root command list. 2006-09-28 18:03:12 -07:00
fib_rules.c [NETLINK]: Don't BUG on undersized allocations 2007-02-08 12:38:41 -08:00
filter.c [NET] net/core: Annotations. 2006-12-02 21:22:49 -08:00
flow.c [IPSEC] flow: Fix potential memory leak 2007-01-23 20:25:39 -08:00
gen_estimator.c [NET]: More kzalloc conversions. 2006-04-09 22:25:48 -07:00
gen_stats.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iovec.c [NET]: Annotate csum_partial() callers in net/* 2006-12-02 21:23:32 -08:00
kmap_skb.h [PATCH] severing skbuff.h -> highmem.h 2006-12-04 02:00:29 -05:00
link_watch.c WorkStruct: Pass the work_struct pointer instead of context data 2006-11-22 14:55:48 +00:00
neighbour.c [NETLINK]: Don't BUG on undersized allocations 2007-02-08 12:38:41 -08:00
net-sysfs.c Network: convert network devices to use struct device instead of class_device 2007-02-07 10:37:11 -08:00
netevent.c [NET]: Network Event Notifier Mechanism. 2006-08-02 13:38:20 -07:00
netpoll.c [PATCH] netpoll: fix netpoll lockup 2006-12-12 08:37:51 -08:00
pktgen.c [PKTGEN]: Convert to kthread API. 2007-01-03 18:38:09 -08:00
request_sock.c [NET]: Size listen hash tables using backlog hint 2006-12-02 21:21:44 -08:00
rtnetlink.c [NETLINK]: Don't BUG on undersized allocations 2007-02-08 12:38:41 -08:00
scm.c [NET]: File descriptor loss while receiving SCM_RIGHTS 2006-10-11 23:59:48 -07:00
skbuff.c Network: convert network devices to use struct device instead of class_device 2007-02-07 10:37:11 -08:00
sock.c [PATCH] lockdep: annotate nfs/nfsd in-kernel sockets 2006-12-07 08:39:30 -08:00
stream.c [NET]: fix __sk_stream_mem_reclaim 2006-07-12 17:58:53 -07:00
sysctl_net_core.c [NET]: The scheduled removal of the frame diverter. 2006-12-02 21:22:23 -08:00
user_dma.c [I/OAT]: net/core/user_dma.c should #include <net/netdma.h> 2006-07-21 14:49:49 -07:00
utils.c [NET]: Accept wildcard delimiters in in[46]_pton 2006-12-02 22:04:04 -08:00
wireless.c [NET]: Memory barrier cleanups 2006-12-07 00:11:33 -08:00