diff options
author | Dan Carpenter <error27@gmail.com> | 2009-12-15 19:46:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 10:20:04 -0500 |
commit | 8130b3b9e6773367b44a19b504bb7c0c23e81a0e (patch) | |
tree | 9a172647f566d4139d2a3ef2c4592b2cc714641d | |
parent | 9265576daeab1a884b11cc4c1087b72b488ca2e3 (diff) |
drivers/video/via/viafbdev.c: fix oops with no /proc
Fixed a typo: missing *. This would lead to a kernel oops if the kernel
was compiled without support for the /proc file system.
Found with a static checker. Compile tested.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Joseph Chan <JosephChan@via.com.tw>
Cc: Scott Fang <ScottFang@viatech.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/video/via/viafbdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c index 56ec696e8afa..10d8c4b4baeb 100644 --- a/drivers/video/via/viafbdev.c +++ b/drivers/video/via/viafbdev.c | |||
@@ -1797,7 +1797,7 @@ static const struct file_operations viafb_vt1636_proc_fops = { | |||
1797 | static void viafb_init_proc(struct proc_dir_entry **viafb_entry) | 1797 | static void viafb_init_proc(struct proc_dir_entry **viafb_entry) |
1798 | { | 1798 | { |
1799 | *viafb_entry = proc_mkdir("viafb", NULL); | 1799 | *viafb_entry = proc_mkdir("viafb", NULL); |
1800 | if (viafb_entry) { | 1800 | if (*viafb_entry) { |
1801 | proc_create("dvp0", 0, *viafb_entry, &viafb_dvp0_proc_fops); | 1801 | proc_create("dvp0", 0, *viafb_entry, &viafb_dvp0_proc_fops); |
1802 | proc_create("dvp1", 0, *viafb_entry, &viafb_dvp1_proc_fops); | 1802 | proc_create("dvp1", 0, *viafb_entry, &viafb_dvp1_proc_fops); |
1803 | proc_create("dfph", 0, *viafb_entry, &viafb_dfph_proc_fops); | 1803 | proc_create("dfph", 0, *viafb_entry, &viafb_dfph_proc_fops); |