diff options
author | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 11:58:53 +0000 |
---|---|---|
committer | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 11:58:53 +0000 |
commit | 614683faf8029100802db06a825648d0b6490285 (patch) | |
tree | 7401b135dc7ce24ff0175e67e0f2ce7f96296ff0 /target/linux/s3c24xx/patches-2.6.24/1200-debug-backtrace-not-choke-on-null-dev_blah.patch.patch | |
parent | 4a018d2445c5f249179ff82c8fffb0e3b717f738 (diff) | |
download | mtk-20170518-614683faf8029100802db06a825648d0b6490285.zip mtk-20170518-614683faf8029100802db06a825648d0b6490285.tar.gz mtk-20170518-614683faf8029100802db06a825648d0b6490285.tar.bz2 |
changed Makefile and profiles, added patches for kernel 2.6.24 (stable-branch of Openmoko)
SVN-Revision: 13613
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1200-debug-backtrace-not-choke-on-null-dev_blah.patch.patch')
-rw-r--r-- | target/linux/s3c24xx/patches-2.6.24/1200-debug-backtrace-not-choke-on-null-dev_blah.patch.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1200-debug-backtrace-not-choke-on-null-dev_blah.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1200-debug-backtrace-not-choke-on-null-dev_blah.patch.patch new file mode 100644 index 0000000..6d83e19 --- /dev/null +++ b/target/linux/s3c24xx/patches-2.6.24/1200-debug-backtrace-not-choke-on-null-dev_blah.patch.patch @@ -0,0 +1,29 @@ +From 91edf710900c85d081f2f56ad23d85f65674d316 Mon Sep 17 00:00:00 2001 +From: Andy Green <andy@openmoko.com> +Date: Wed, 2 Jul 2008 22:41:59 +0100 +Subject: [PATCH] debug-backtrace-not-choke-on-null-dev_blah.patch + +Signed-off-by: Andy Green <andy@openmoko.com> +--- + drivers/base/core.c | 5 +++++ + 1 files changed, 5 insertions(+), 0 deletions(-) + +diff --git a/drivers/base/core.c b/drivers/base/core.c +index 2683eac..49fdee2 100644 +--- a/drivers/base/core.c ++++ b/drivers/base/core.c +@@ -42,6 +42,11 @@ int (*platform_notify_remove)(struct device * dev) = NULL; + */ + const char *dev_driver_string(struct device *dev) + { ++ if (!dev) { ++ printk(KERN_ERR"Null dev to dev_driver_string\n"); ++ dump_stack(); ++ return "*NULL*"; ++ } + return dev->driver ? dev->driver->name : + (dev->bus ? dev->bus->name : + (dev->class ? dev->class->name : "")); +-- +1.5.6.5 + |