[PATCH] Drivers: hv: vmbus: fix error return code in vmbus_connect()

KY Srinivasan kys at microsoft.com
Wed Sep 11 20:03:07 UTC 2013



> -----Original Message-----
> From: Wei Yongjun [mailto:weiyj.lk at gmail.com]
> Sent: Wednesday, September 11, 2013 4:20 AM
> To: KY Srinivasan; Haiyang Zhang
> Cc: yongjun_wei at trendmicro.com.cn; devel at linuxdriverproject.org; linux-
> kernel at vger.kernel.org
> Subject: [PATCH] Drivers: hv: vmbus: fix error return code in vmbus_connect()
> 
> From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
> 
> Fix to return -EINVAL in the version check error handling
> case instead of 0, as done elsewhere in this function.

The return will not be zero in this case. If you look at the function 
vmbus_negotiate_version(), in case the host refuses the version, the
return value will be set to -ECONNREFUSED

Regards,

K. Y


More information about the devel mailing list