]> err.no Git - linux-2.6/commit
[PATCH] isdn/gigaset: avoid cs->dev null pointer dereference
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 30 Oct 2006 06:46:35 +0000 (22:46 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 30 Oct 2006 20:08:40 +0000 (12:08 -0800)
commit70812522b847bdb8fabee963191734f5fa3143f3
tree5e1c4372cfe9437a9a7eeaf65d627596299fbddf
parent0e2d57fc6e7dabdbfdd4f26c861e7e6c75d5bdcf
[PATCH] isdn/gigaset: avoid cs->dev null pointer dereference

When gigaset_initbcs() is called, cs->dev is not initialized yet.  If
dev_alloc_skb() failed in this function, NULL poinster dereference will
happen at dev_warn().

Cc: Kai Germaschewski <kai.germaschewski@gmx.de>
Cc: Hansjoerg Lipp <hjlipp@web.de>
Cc: Tilman Schmidt <tilman@imap.cc>
Acked-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/isdn/gigaset/common.c