net: strparser: fix a missing check for create_singlethread_workqueue
authorKangjie Lu <kjlu@umn.edu>
Fri, 15 Mar 2019 04:12:06 +0000 (23:12 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Mar 2019 19:51:56 +0000 (12:51 -0700)
commit228cd2dba27cee9956c1af97e6445be056881e41
tree2a5cbd74ef9dd24346e648c01bdf3082cee336db
parent68cfe9a286f3ee2371de00ab666b4949ff285196
net: strparser: fix a missing check for create_singlethread_workqueue

In case create_singlethread_workqueue fails, the check returns
an error to callers to avoid potential NULL pointer dereferences.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/strparser/strparser.c