From: Vyacheslav Cherkashin Date: Thu, 2 Jul 2015 11:19:49 +0000 (+0300) Subject: [FIX] invalid condition X-Git-Tag: submit/tizen/20151123.110932~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34aa24568c00d5ff784c659f0128c00e814e0cb9;p=kernel%2Fswap-modules.git [FIX] invalid condition Change-Id: I9069efa8dca80e9e55efc4dc343d1ef902d98c77 Signed-off-by: Vyacheslav Cherkashin --- diff --git a/nsp/nsp.c b/nsp/nsp.c index baa8160..854874e 100644 --- a/nsp/nsp.c +++ b/nsp/nsp.c @@ -217,7 +217,7 @@ static struct nsp_data *nsp_data_create(const char *app_path) return ERR_PTR(-ENOMEM); data->app_path = kstrdup(app_path, GFP_KERNEL); - if (data->app_dentry == NULL) { + if (data->app_path == NULL) { kfree(data); return ERR_PTR(-ENOMEM); }