The patch titled atmel-ssc: fix misuse of dev_dbg when requested ssc instance is not found has been added to the -mm tree. Its filename is atmel-ssc-fix-misuse-of-dev_dbg-when-requested-ssc-instance-is-not-found.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: atmel-ssc: fix misuse of dev_dbg when requested ssc instance is not found From: Hans-Christian Egtvedt <hans-christian.egtvedt@xxxxxxxxx> 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@xxxxxxxxx> Cc: Kay Sievers <kay.sievers@xxxxxxxx> Cc: Huang Weiyi <weiyi.huang@xxxxxxxxx> Cc: Haavard Skinnemoen <haavard.skinnemoen@xxxxxxxxx> Cc: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/misc/atmel-ssc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/misc/atmel-ssc.c~atmel-ssc-fix-misuse-of-dev_dbg-when-requested-ssc-instance-is-not-found drivers/misc/atmel-ssc.c --- a/drivers/misc/atmel-ssc.c~atmel-ssc-fix-misuse-of-dev_dbg-when-requested-ssc-instance-is-not-found +++ a/drivers/misc/atmel-ssc.c @@ -35,7 +35,7 @@ struct ssc_device *ssc_request(unsigned if (!ssc_valid) { spin_unlock(&user_lock); - dev_dbg(&ssc->pdev->dev, "could not find requested device\n"); + pr_err("ssc: ssc%d platform device is missing\n", ssc_num); return ERR_PTR(-ENODEV); } _ Patches currently in -mm which might be from hans-christian.egtvedt@xxxxxxxxx are atmel-ssc-fix-misuse-of-dev_dbg-when-requested-ssc-instance-is-not-found.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html