[adm5120] add USB drivers for the NFS-101U/WU profiles
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1200-debug-backtrace-not-choke-on-null-dev_blah.patch.patch
1 From 91edf710900c85d081f2f56ad23d85f65674d316 Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Wed, 2 Jul 2008 22:41:59 +0100
4 Subject: [PATCH] debug-backtrace-not-choke-on-null-dev_blah.patch
5
6 Signed-off-by: Andy Green <andy@openmoko.com>
7 ---
8 drivers/base/core.c | 5 +++++
9 1 files changed, 5 insertions(+), 0 deletions(-)
10
11 diff --git a/drivers/base/core.c b/drivers/base/core.c
12 index 2683eac..49fdee2 100644
13 --- a/drivers/base/core.c
14 +++ b/drivers/base/core.c
15 @@ -42,6 +42,11 @@ int (*platform_notify_remove)(struct device * dev) = NULL;
16 */
17 const char *dev_driver_string(struct device *dev)
18 {
19 + if (!dev) {
20 + printk(KERN_ERR"Null dev to dev_driver_string\n");
21 + dump_stack();
22 + return "*NULL*";
23 + }
24 return dev->driver ? dev->driver->name :
25 (dev->bus ? dev->bus->name :
26 (dev->class ? dev->class->name : ""));
27 --
28 1.5.6.5
29
This page took 0.038005 seconds and 5 git commands to generate.