xen/evtchn_fifo: fix error return code in evtchn_fifo_setup()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 7 Jan 2014 13:11:25 +0000 (21:11 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 7 Jan 2014 14:59:52 +0000 (09:59 -0500)
Fix to return -ENOMEM from the error handling case instead of
0 (overwrited to 0 by the HYPERVISOR_event_channel_op call),
otherwise the error condition cann't be reflected from the
return value.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>

No differences found