]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3536a054c8066133aa4514a521dd003c7b8b8ae7
treeea6c9a572819d080cc1982779dd802eb110fad0c
parent9f783a088c3b8735b10b6cc1d1ca8e2d5f46a247
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