nes: handling failed allocation when creating workqueue
authorInsu Yun <wuninsu@gmail.com>
Wed, 17 Feb 2016 18:06:33 +0000 (13:06 -0500)
committerDoug Ledford <dledford@redhat.com>
Mon, 29 Feb 2016 22:11:57 +0000 (17:11 -0500)
commita82268b30a8b4b920d0bad24472cbb000c8e734a
tree063c147555cf98e4b6bf0c6604d5fa16ad7a6f1b
parentbfec53c6c88aa2b18a5015ca3e0137d4e0dec95a
nes: handling failed allocation when creating workqueue

Since create_singlethread_workqueue uses kzalloc internally,
it can fail when the system is under memory pressure, so need
to handle it.

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Reviewed-by: Leon Romanovsky <leon@leon.nu>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/nes/nes_cm.c