diff options
author | Tilman Schmidt <tilman@imap.cc> | 2009-05-13 08:44:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-17 23:51:24 -0400 |
commit | 42e3d611158faa2d372ccfb1e17bfde13935de68 (patch) | |
tree | 3018163e3181dc639e4a9d81554f354745e3feca /drivers/isdn/gigaset/proc.c | |
parent | 528efc6a54a9e4c03488ee72988567991c9476ba (diff) |
gigaset: fix possible oops in error handling
Use pr_warning() / pr_err() instead of dev_warn() / dev_err() in two
places where the dev pointer isn't guaranteed to be valid.
Impact: error handling bugfix
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/gigaset/proc.c')
-rw-r--r-- | drivers/isdn/gigaset/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/gigaset/proc.c b/drivers/isdn/gigaset/proc.c index da6f3acf9fd0..9715aad9c3f0 100644 --- a/drivers/isdn/gigaset/proc.c +++ b/drivers/isdn/gigaset/proc.c | |||
@@ -79,5 +79,5 @@ void gigaset_init_dev_sysfs(struct cardstate *cs) | |||
79 | 79 | ||
80 | gig_dbg(DEBUG_INIT, "setting up sysfs"); | 80 | gig_dbg(DEBUG_INIT, "setting up sysfs"); |
81 | if (device_create_file(cs->tty_dev, &dev_attr_cidmode)) | 81 | if (device_create_file(cs->tty_dev, &dev_attr_cidmode)) |
82 | dev_err(cs->dev, "could not create sysfs attribute\n"); | 82 | pr_err("could not create sysfs attribute\n"); |
83 | } | 83 | } |