Lines 149-161
struct snd_seq_client *snd_seq_client_us
Link Here
|
149 |
} |
149 |
} |
150 |
spin_unlock_irqrestore(&clients_lock, flags); |
150 |
spin_unlock_irqrestore(&clients_lock, flags); |
151 |
#ifdef CONFIG_KMOD |
151 |
#ifdef CONFIG_KMOD |
152 |
if (!in_interrupt() && current->fs->root) { |
152 |
if (!in_interrupt()) { |
153 |
static char client_requested[SNDRV_SEQ_GLOBAL_CLIENTS]; |
153 |
static char client_requested[SNDRV_SEQ_GLOBAL_CLIENTS]; |
154 |
static char card_requested[SNDRV_CARDS]; |
154 |
static char card_requested[SNDRV_CARDS]; |
155 |
if (clientid < SNDRV_SEQ_GLOBAL_CLIENTS) { |
155 |
if (clientid < SNDRV_SEQ_GLOBAL_CLIENTS) { |
156 |
int idx; |
156 |
int idx; |
157 |
|
157 |
|
158 |
if (! client_requested[clientid] && current->fs->root) { |
158 |
if (!client_requested[clientid]) { |
159 |
client_requested[clientid] = 1; |
159 |
client_requested[clientid] = 1; |
160 |
for (idx = 0; idx < 15; idx++) { |
160 |
for (idx = 0; idx < 15; idx++) { |
161 |
if (seq_client_load[idx] < 0) |
161 |
if (seq_client_load[idx] < 0) |