Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182004
b: refs/heads/master
c: c3bfc96
h: refs/heads/master
v: v3
  • Loading branch information
Dominik Brodowski committed Feb 17, 2010
1 parent a10590f commit bdfc703
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: aa584ca4cdd8db370a524c61fd3ca408303281e9
refs/heads/master: c3bfc96ef7366aa996fb8286a36f3333a3b4ff25
12 changes: 10 additions & 2 deletions trunk/drivers/pcmcia/cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,19 @@ static void socket_shutdown(struct pcmcia_socket *s)
s->lock_count = 0;
kfree(s->fake_cis);
s->fake_cis = NULL;
s->functions = 0;

/* From here on we can be sure that only we (that is, the
* pccardd thread) accesses this socket, and all (16-bit)
* PCMCIA interactions are gone. Therefore, release
* ops_mutex so that we don't get a sysfs-related lockdep
* warning.
*/
mutex_unlock(&s->ops_mutex);

#ifdef CONFIG_CARDBUS
cb_free(s);
#endif
s->functions = 0;

/* give socket some time to power down */
msleep(100);
Expand All @@ -415,7 +424,6 @@ static void socket_shutdown(struct pcmcia_socket *s)
}

s->state &= ~SOCKET_INUSE;
mutex_unlock(&s->ops_mutex);
}

static int socket_setup(struct pcmcia_socket *skt, int initial_delay)
Expand Down

0 comments on commit bdfc703

Please sign in to comment.