Skip to contentSkip to conversation

ALSA: pcm: Use ERESTARTSYS instead of EINTR in OSS emulation

PATCH New Takashi Iwai 1 participant 1 message Jan 9, 2018 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: pcm: Use ERESTARTSYS instead of EINTR in OSS emulation

Fix the last standing EINTR in the whole subsystem. Use more correct ERESTARTSYS for pending signals.

---
 sound/core/oss/pcm_oss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/core/oss/pcm_oss.c +1 -1
index c7d8489d39c8..e8b19876c420 100644
@@ -842,7 +842,7 @@ static int snd_pcm_oss_change_params(struct snd_pcm_substream *substream,
 		if (!(mutex_trylock(&runtime->oss.params_lock)))
 			return -EAGAIN;
 	} else if (mutex_lock_interruptible(&runtime->oss.params_lock))
-		return -EINTR;
+		return -ERESTARTSYS;
 	sw_params = kzalloc(sizeof(*sw_params), GFP_KERNEL);
 	params = kmalloc(sizeof(*params), GFP_KERNEL);
 	sparams = kmalloc(sizeof(*sparams), GFP_KERNEL);
Signature · 1 line
2.15.1