Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334570
b: refs/heads/master
c: d7c4660
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Oct 17, 2012
1 parent 4e9704e commit 2dbb6f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 367ff459e54d1bc471880aef21239d2a0a03b12e
refs/heads/master: d7c4660c12adc5c66351253af381259686fa08a4
6 changes: 6 additions & 0 deletions trunk/drivers/staging/dgrp/dgrp_specproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ static void register_proc_table(struct dgrp_proc_entry *table,
int len;
mode_t mode;

if (table == NULL)
return;

for (; table->id; table++) {
/* Can't do anything without a proc name. */
if (!table->name)
Expand Down Expand Up @@ -297,6 +300,9 @@ static void unregister_proc_table(struct dgrp_proc_entry *table,
struct proc_dir_entry *de;
struct nd_struct *tmp;

if (table == NULL)
return;

list_for_each_entry(tmp, &nd_struct_list, list) {
if ((table == dgrp_net_table) && (tmp->nd_net_de)) {
unregister_dgrp_device(tmp->nd_net_de);
Expand Down

0 comments on commit 2dbb6f8

Please sign in to comment.