]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
atmel-ssc: fix misuse of dev_dbg when requested ssc instance is not found
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Wed, 4 Feb 2009 23:12:17 +0000 (15:12 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 5 Feb 2009 20:56:48 +0000 (12:56 -0800)
commitdfecb7164eb81fbfae93fee1ad1da2ac58bb224d
tree44dc3ffe7d75ab73417f561f12914137bef8c1aa
parentab92661d5d9514647346047f30f67a7f35ffea67
atmel-ssc: fix misuse of dev_dbg when requested ssc instance is not found

The ssc pointer is not valid when the id is not found in the list.
Convert the message from a debug one into an error message and avoid
dereferencing the bad pointer.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Huang Weiyi <weiyi.huang@gmail.com>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/atmel-ssc.c