diff options
Diffstat (limited to 'drivers/staging/dst')
-rw-r--r-- | drivers/staging/dst/export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dst/export.c b/drivers/staging/dst/export.c index 80ae4eb..4fbd848 100644 --- a/drivers/staging/dst/export.c +++ b/drivers/staging/dst/export.c @@ -159,7 +159,7 @@ static struct dst_state *dst_accept_client(struct dst_state *st) goto err_out_exit; new = dst_state_alloc(st->node); - if (!new) { + if (IS_ERR(new)) { err = -ENOMEM; goto err_out_release; } |