Re: [alsa-devel] [PATCH] ALSA: firewire: fix error return code in scs_probe()
18 Jun
2013
18 Jun
'13
4:02 p.m.
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_wei@trendmicro.com.cn
Acked-by: Clemens Ladisch clemens@ladisch.de
scs->buffer = kmalloc(HSS1394_MAX_PACKET_SIZE, GFP_KERNEL);
- if (!scs->buffer)
- if (!scs->buffer) {
goto err_card;err = -ENOMEM;
- }
4205
Age (days ago)
4205
Last active (days ago)
0 comments
1 participants
participants (1)
-
Clemens Ladisch