Skip to content

Commit 387665f

Browse files
author
Fox Snowpatch
committed
1 parent 182544a commit 387665f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

arch/powerpc/kernel/fadump.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,6 +1479,9 @@ static ssize_t bootargs_append_store(struct kobject *kobj,
14791479
if (!fw_dump.fadump_enabled || fw_dump.dump_active)
14801480
return -EPERM;
14811481

1482+
if (!count)
1483+
return -EINVAL;
1484+
14821485
if (count >= COMMAND_LINE_SIZE)
14831486
return -EINVAL;
14841487

0 commit comments

Comments
 (0)