lkml.org 
[lkml]   [2009]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/2] sep: Fix use of legacy ioctl fop
    Date
    SEP doesn't need lock_kernel.

    Signed-off-by: Alan Cox <alan@linux.intel.com>
    ---

    drivers/staging/sep/sep_driver.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)


    diff --git a/drivers/staging/sep/sep_driver.c b/drivers/staging/sep/sep_driver.c
    index 2ecd62d..23b4db1 100644
    --- a/drivers/staging/sep/sep_driver.c
    +++ b/drivers/staging/sep/sep_driver.c
    @@ -2231,7 +2231,7 @@ static int sep_set_flow_id_handler(struct sep_device *sep,
    return error;
    }

    -static int sep_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg)
    +static long sep_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
    {
    int error = 0;
    struct sep_device *sep = filp->private_data;
    @@ -2606,7 +2606,7 @@ static dev_t sep_devno;
    /* the files operations structure of the driver */
    static struct file_operations sep_file_operations = {
    .owner = THIS_MODULE,
    - .ioctl = sep_ioctl,
    + .unlocked_ioctl = sep_ioctl,
    .poll = sep_poll,
    .open = sep_open,
    .release = sep_release,


    \
     
     \ /
      Last update: 2009-10-13 17:09    [W:3.082 / U:0.956 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site