Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100359
b: refs/heads/master
c: cad8423
h: refs/heads/master
i:
  100357: cd035a5
  100355: 8412bfb
  100351: 8a46db1
v: v3
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jun 20, 2008
1 parent 2dc8426 commit e337e9d
Show file tree
Hide file tree
Showing 2 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: b9bde77a6a4f76b767d4363a5f74127528426159
refs/heads/master: cad84238056babf4e4e6b0de183238224aab8177
4 changes: 4 additions & 0 deletions trunk/drivers/media/radio/miropcm20-rds.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/delay.h>
Expand All @@ -27,13 +28,16 @@ static int rds_f_open(struct inode *in, struct file *fi)
if (rds_users)
return -EBUSY;

lock_kernel();
rds_users++;
if ((text_buffer=kmalloc(66, GFP_KERNEL)) == 0) {
rds_users--;
printk(KERN_NOTICE "aci-rds: Out of memory by open()...\n");
unlock_kernel();
return -ENOMEM;
}

unlock_kernel();
return 0;
}

Expand Down

0 comments on commit e337e9d

Please sign in to comment.