提交 2ca4c92f 编写于 作者: A Alasdair G Kergon

dm ioctl: prevent empty message

Detect invalid empty messages in core dm instead of requiring every target to
check this.
Signed-off-by: NAlasdair G Kergon <agk@redhat.com>
上级 13c87583
......@@ -1402,6 +1402,11 @@ static int target_message(struct dm_ioctl *param, size_t param_size)
goto out;
}
if (!argc) {
DMWARN("Empty message received.");
goto out;
}
table = dm_get_live_table(md);
if (!table)
goto out_argv;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册