kdbus: cmdline emptiness check fix 75/91975/1 accepted/tizen/common/20161017.170018 accepted/tizen/ivi/20161017.013621 accepted/tizen/mobile/20161017.013555 accepted/tizen/tv/20161017.013606 accepted/tizen/wearable/20161017.013613 submit/tizen/20161014.114439
authorKonrad Lipinski <konrad.l@samsung.com>
Wed, 12 Oct 2016 10:54:15 +0000 (12:54 +0200)
committerKonrad Lipinski <konrad.l@samsung.com>
Wed, 12 Oct 2016 10:54:51 +0000 (12:54 +0200)
Change-Id: Ia925fa43bf4c50ab707be98f275b50808782f063

ipc/kdbus/metadata.c

index 3adc6c2c2e766be8cd25684dfca3394a3e75ea54..501bebda7d849ca03b1f25705bb106350ccb4cce 100644 (file)
@@ -311,7 +311,7 @@ static int kdbus_meta_proc_collect_cmdline(struct kdbus_meta_proc *mp)
        if (!mm)
                return 0;
 
-       if (!mm->arg_end) {
+       if (mm->arg_start >= mm->arg_end) {
                mmput(mm);
                return 0;
        }