Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190729
b: refs/heads/master
c: 15d0a87
h: refs/heads/master
i:
  190727: c661bf7
v: v3
  • Loading branch information
Marc Zyngier authored and Dominik Brodowski committed May 4, 2010
1 parent 5051bf1 commit c997a36
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: 43821242078aeced1d576b4b54d7b4a9bd76ec05
refs/heads/master: 15d0a873549ef0bdeaa04dacf29a3e15de886d03
7 changes: 1 addition & 6 deletions trunk/drivers/pcmcia/pcmcia_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ static int ds_open(struct inode *inode, struct file *file)
warning_printed = 1;
}

if (s->pcmcia_state.present)
if (atomic_read(&s->present))
queue_event(user, CS_EVENT_CARD_INSERTION);
out:
unlock_kernel();
Expand Down Expand Up @@ -770,9 +770,6 @@ static ssize_t ds_read(struct file *file, char __user *buf,
return -EIO;

s = user->socket;
if (s->pcmcia_state.dead)
return -EIO;

ret = wait_event_interruptible(s->queue, !queue_empty(user));
if (ret == 0)
ret = put_user(get_queued_event(user), (int __user *)buf) ? -EFAULT : 4;
Expand Down Expand Up @@ -838,8 +835,6 @@ static int ds_ioctl(struct inode *inode, struct file *file,
return -EIO;

s = user->socket;
if (s->pcmcia_state.dead)
return -EIO;

size = (cmd & IOCSIZE_MASK) >> IOCSIZE_SHIFT;
if (size > sizeof(ds_ioctl_arg_t))
Expand Down

0 comments on commit c997a36

Please sign in to comment.