android_kernel_xiaomi_sm8350/net/decnet
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
..
netfilter
af_decnet.c
dn_dev.c [NETLINK]: Don't BUG on undersized allocations 2007-02-08 12:38:41 -08:00
dn_fib.c
dn_neigh.c
dn_nsp_in.c
dn_nsp_out.c
dn_route.c
dn_rules.c
dn_table.c [NETLINK]: Don't BUG on undersized allocations 2007-02-08 12:38:41 -08:00
dn_timer.c
Kconfig
Makefile
README
sysctl_net_decnet.c
TODO

                       Linux DECnet Project
                      ======================

The documentation for this kernel subsystem is available in the
Documentation/networking subdirectory of this distribution and also
on line at http://www.chygwyn.com/DECnet/

Steve Whitehouse <SteveW@ACM.org>