diff options
author | mirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-12-12 11:58:53 +0000 |
---|---|---|
committer | mirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-12-12 11:58:53 +0000 |
commit | fc54b9bf158eea9cae647ce2c58f7d9989af173a (patch) | |
tree | 54644c1229434d7ee13c5872bda4129e34337fc0 /target/linux/s3c24xx/patches-2.6.26/0178-debug-backtrace-not-choke-on-null-dev_blah.patch.patch | |
parent | d9f49b62b28ebd245587854efa484974d90debbf (diff) |
changed Makefile and profiles, added patches for kernel 2.6.24
(stable-branch of Openmoko)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13613 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.26/0178-debug-backtrace-not-choke-on-null-dev_blah.patch.patch')
-rwxr-xr-x | target/linux/s3c24xx/patches-2.6.26/0178-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.26/0178-debug-backtrace-not-choke-on-null-dev_blah.patch.patch b/target/linux/s3c24xx/patches-2.6.26/0178-debug-backtrace-not-choke-on-null-dev_blah.patch.patch new file mode 100755 index 000000000..2645d5efc --- /dev/null +++ b/target/linux/s3c24xx/patches-2.6.26/0178-debug-backtrace-not-choke-on-null-dev_blah.patch.patch @@ -0,0 +1,29 @@ +From b0c1e8a5a319e506d173588258c134aec7421513 Mon Sep 17 00:00:00 2001 +From: Andy Green <andy@openmoko.com> +Date: Fri, 25 Jul 2008 23:06:15 +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 ee0a51a..a1251c7 100644 +--- a/drivers/base/core.c ++++ b/drivers/base/core.c +@@ -51,6 +51,11 @@ static inline int device_is_not_partition(struct device *dev) + */ + 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.3 + |