The patch titled atmel-ssc: fix misuse of dev_dbg when requested ssc instance is not found has been removed from the -mm tree. Its filename was atmel-ssc-fix-misuse-of-dev_dbg-when-requested-ssc-instance-is-not-found.patch This patch was dropped because it was merged into mainline or a subsystem tree 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> Acked-by: 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 origin.patch linux-next.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