Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220321
b: refs/heads/master
c: 88eea8d
h: refs/heads/master
i:
  220319: 00a53d3
v: v3
  • Loading branch information
Vinod Koul authored and Greg Kroah-Hartman committed Oct 14, 2010
1 parent ad2416e commit 66aab62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: 6e2c2dcfa4c30532bf9e66a1d0f42a7342283f4c
refs/heads/master: 88eea8de94b09207421b75b0029d50727a1dff38
7 changes: 1 addition & 6 deletions trunk/drivers/staging/intel_sst/intel_sst_app_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,19 +812,15 @@ long intel_sst_ioctl(struct file *file_ptr, unsigned int cmd, unsigned long arg)
struct ioctl_pvt_data *data = NULL;
int str_id = 0, minor = 0;

lock_kernel();

data = file_ptr->private_data;
if (data) {
minor = 0;
str_id = data->str_id;
} else
minor = 1;

if (sst_drv_ctx->sst_state != SST_FW_RUNNING) {
unlock_kernel();
if (sst_drv_ctx->sst_state != SST_FW_RUNNING)
return -EBUSY;
}

switch (_IOC_NR(cmd)) {
case _IOC_NR(SNDRV_SST_STREAM_PAUSE):
Expand Down Expand Up @@ -1227,7 +1223,6 @@ long intel_sst_ioctl(struct file *file_ptr, unsigned int cmd, unsigned long arg)
default:
retval = -EINVAL;
}
unlock_kernel();
pr_debug("sst: intel_sst_ioctl:complete ret code = %d\n", retval);
return retval;
}
Expand Down

0 comments on commit 66aab62

Please sign in to comment.