|
@@ -149,13 +149,13 @@ struct snd_seq_client *snd_seq_client_use_ptr(int clientid)
|
|
}
|
|
}
|
|
spin_unlock_irqrestore(&clients_lock, flags);
|
|
spin_unlock_irqrestore(&clients_lock, flags);
|
|
#ifdef CONFIG_KMOD
|
|
#ifdef CONFIG_KMOD
|
|
- if (!in_interrupt() && current->fs->root) {
|
|
|
|
|
|
+ if (!in_interrupt()) {
|
|
static char client_requested[SNDRV_SEQ_GLOBAL_CLIENTS];
|
|
static char client_requested[SNDRV_SEQ_GLOBAL_CLIENTS];
|
|
static char card_requested[SNDRV_CARDS];
|
|
static char card_requested[SNDRV_CARDS];
|
|
if (clientid < SNDRV_SEQ_GLOBAL_CLIENTS) {
|
|
if (clientid < SNDRV_SEQ_GLOBAL_CLIENTS) {
|
|
int idx;
|
|
int idx;
|
|
|
|
|
|
- if (! client_requested[clientid] && current->fs->root) {
|
|
|
|
|
|
+ if (!client_requested[clientid]) {
|
|
client_requested[clientid] = 1;
|
|
client_requested[clientid] = 1;
|
|
for (idx = 0; idx < 15; idx++) {
|
|
for (idx = 0; idx < 15; idx++) {
|
|
if (seq_client_load[idx] < 0)
|
|
if (seq_client_load[idx] < 0)
|