Change-Id: I21fbc9aff2b97a8b3f4cbed202c00b6d84557a6e
Signed-off-by: Alexander Kotov <kot@yandex.ru>
}
/* Parse a line ending with \n and return it as an unformat_input_t. */
}
/* Parse a line ending with \n and return it as an unformat_input_t. */
{
unformat_input_t *result = va_arg (*va, unformat_input_t *);
u8 *line;
{
unformat_input_t *result = va_arg (*va, unformat_input_t *);
u8 *line;
- unformat_user (i, unformat_line, &line);
+ if (!unformat_user (i, unformat_line, &line))
+ return 0;
unformat_init_vector (result, line);
return 1;
}
unformat_init_vector (result, line);
return 1;
}