xen-netback: correctly check failed allocation
authorInsu Yun <wuninsu@gmail.com>
Thu, 15 Oct 2015 18:02:28 +0000 (18:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Oct 2015 02:37:29 +0000 (19:37 -0700)
commit833b8f18adfcca04070a8a42d545a4553379d36f
treeea6c9a572819d080cc1982779dd802eb110fad0c
parent80083a3c02ef4451edeef31a6f9afe130078f2bf
xen-netback: correctly check failed allocation

Since vzalloc can be failed in memory pressure,
writes -ENOMEM to xenstore to indicate error.

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/xenbus.c