]> git.baikalelectronics.ru Git - kernel.git/commit
snap: handle registration error and compile warning
authorStephen Hemminger <shemminger@vyatta.com>
Sun, 22 Feb 2009 08:03:19 +0000 (00:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Feb 2009 03:54:47 +0000 (19:54 -0800)
commit48baa7d15af57cc0d87a352dfb3f4012da6949e2
tree9a312a491177562110bc91279809746883624bcc
parentabec23304b95fe17e5d86ec4e48c0f7c3edad4f9
snap: handle registration error and compile warning

If this module can't load, it is almost certainly because something else
is already bound to that SAP. So in that case, return the same error code
as other SAP usage, and fail the module load.

Also fixes a compiler warning about printk of non const.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/802/psnap.c