Re: [PATCH] ALSA: firewire: fix error return code in scs_probe()

2013-06-18 Thread Takashi Iwai
At Tue, 18 Jun 2013 21:09:42 +0800, Wei Yongjun wrote: > > From: Wei Yongjun > > Fix to return -ENOMEM in the kmalloc() error handling > case instead of 0, as done elsewhere in this function. > > Signed-off-by: Wei Yongjun Thanks, applied with ack by Clemens. Takashi > --- >

Re: [PATCH] ALSA: firewire: fix error return code in scs_probe()

2013-06-18 Thread Clemens Ladisch
Wei Yongjun wrote: > Fix to return -ENOMEM in the kmalloc() error handling > case instead of 0, as done elsewhere in this function. > > Signed-off-by: Wei Yongjun Acked-by: Clemens Ladisch > scs->buffer = kmalloc(HSS1394_MAX_PACKET_SIZE, GFP_KERNEL); > - if (!scs->buffer) > + if

[PATCH] ALSA: firewire: fix error return code in scs_probe()

2013-06-18 Thread Wei Yongjun
From: Wei Yongjun Fix to return -ENOMEM in the kmalloc() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- sound/firewire/scs1x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/firewire/scs1x.c

[PATCH] ALSA: firewire: fix error return code in scs_probe()

2013-06-18 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return -ENOMEM in the kmalloc() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- sound/firewire/scs1x.c | 4 +++- 1 file changed, 3 insertions(+), 1

Re: [PATCH] ALSA: firewire: fix error return code in scs_probe()

2013-06-18 Thread Clemens Ladisch
Wei Yongjun wrote: Fix to return -ENOMEM in the kmalloc() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn Acked-by: Clemens Ladisch clem...@ladisch.de scs-buffer = kmalloc(HSS1394_MAX_PACKET_SIZE,

Re: [PATCH] ALSA: firewire: fix error return code in scs_probe()

2013-06-18 Thread Takashi Iwai
At Tue, 18 Jun 2013 21:09:42 +0800, Wei Yongjun wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return -ENOMEM in the kmalloc() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn Thanks, applied