Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209914
b: refs/heads/master
c: 6e19d2d
h: refs/heads/master
v: v3
  • Loading branch information
Javier Martinez Canillas authored and Greg Kroah-Hartman committed Aug 24, 2010
1 parent 02cae22 commit ed0bb80
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b633f6624ce4ea6199a54c2cad6c9e84164f8f5
refs/heads/master: 6e19d2db499b66aa7942bd36a7b55bb725379aae
15 changes: 14 additions & 1 deletion trunk/drivers/staging/spectra/ffsport.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <linux/kthread.h>
#include <linux/log2.h>
#include <linux/init.h>
#include <linux/smp_lock.h>

/**** Helper functions used for Div, Remainder operation on u64 ****/

Expand Down Expand Up @@ -589,11 +590,23 @@ int GLOB_SBD_ioctl(struct block_device *bdev, fmode_t mode,
return -ENOTTY;
}

int GLOB_SBD_unlocked_ioctl(struct block_device *bdev, fmode_t mode,
unsigned int cmd, unsigned long arg)
{
int ret;

lock_kernel();
ret = GLOB_SBD_ioctl(bdev, mode, cmd, arg);
unlock_kernel();

return ret;
}

static struct block_device_operations GLOB_SBD_ops = {
.owner = THIS_MODULE,
.open = GLOB_SBD_open,
.release = GLOB_SBD_release,
.locked_ioctl = GLOB_SBD_ioctl,
.ioctl = GLOB_SBD_unlocked_ioctl,
.getgeo = GLOB_SBD_getgeo,
};

Expand Down

0 comments on commit ed0bb80

Please sign in to comment.