Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100355
b: refs/heads/master
c: cddf63d
h: refs/heads/master
i:
  100353: 4146ce7
  100351: 8a46db1
v: v3
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jun 20, 2008
1 parent 86845f0 commit 8412bfb
Show file tree
Hide file tree
Showing 3 changed files with 5 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: af96f0103d332be92c42a44accf731da667ecc03
refs/heads/master: cddf63d99d0d145f18b293c3d0de4af7dab2a922
1 change: 1 addition & 0 deletions trunk/net/irda/irnet/irnet.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@
#include <linux/module.h>

#include <linux/kernel.h>
#include <linux/smp_lock.h>
#include <linux/skbuff.h>
#include <linux/tty.h>
#include <linux/proc_fs.h>
Expand Down
3 changes: 3 additions & 0 deletions trunk/net/irda/irnet/irnet_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ dev_irnet_open(struct inode * inode,
ap = kzalloc(sizeof(*ap), GFP_KERNEL);
DABORT(ap == NULL, -ENOMEM, FS_ERROR, "Can't allocate struct irnet...\n");

lock_kernel();
/* initialize the irnet structure */
ap->file = file;

Expand All @@ -500,6 +501,7 @@ dev_irnet_open(struct inode * inode,
{
DERROR(FS_ERROR, "Can't setup IrDA link...\n");
kfree(ap);
unlock_kernel();
return err;
}

Expand All @@ -510,6 +512,7 @@ dev_irnet_open(struct inode * inode,
file->private_data = ap;

DEXIT(FS_TRACE, " - ap=0x%p\n", ap);
unlock_kernel();
return 0;
}

Expand Down

0 comments on commit 8412bfb

Please sign in to comment.