|
@@ -1381,6 +1381,10 @@ static ssize_t snd_pcm_oss_write1(struct snd_pcm_substream *substream, const cha
|
|
tmp != runtime->oss.period_bytes)
|
|
tmp != runtime->oss.period_bytes)
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+ if (signal_pending(current)) {
|
|
|
|
+ tmp = -ERESTARTSYS;
|
|
|
|
+ goto err;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
mutex_unlock(&runtime->oss.params_lock);
|
|
mutex_unlock(&runtime->oss.params_lock);
|
|
return xfer;
|
|
return xfer;
|
|
@@ -1466,6 +1470,10 @@ static ssize_t snd_pcm_oss_read1(struct snd_pcm_substream *substream, char __use
|
|
bytes -= tmp;
|
|
bytes -= tmp;
|
|
xfer += tmp;
|
|
xfer += tmp;
|
|
}
|
|
}
|
|
|
|
+ if (signal_pending(current)) {
|
|
|
|
+ tmp = -ERESTARTSYS;
|
|
|
|
+ goto err;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
mutex_unlock(&runtime->oss.params_lock);
|
|
mutex_unlock(&runtime->oss.params_lock);
|
|
return xfer;
|
|
return xfer;
|