hyperv: Fix error return code in netvsc_init_buf()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 23 Jul 2014 01:00:35 +0000 (09:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jul 2014 21:55:47 +0000 (14:55 -0700)
commitdd1d3f8f9920926aa426589e542eed6bf58b7354
tree2bb05de02d8226ae35c74ba4cbc530bba61b5e22
parent332cfc823d182d43bfcc80d1ebee7ab79e06ccf3
hyperv: Fix error return code in netvsc_init_buf()

Fix to return -ENOMEM from the kalloc error handling
case instead of 0.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c