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;
- }