mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
dynamic debug: line queries failing due to uninitialized local variable
Settings of the form, 'line x module y +p', can fail arbitrarily due to an uninitialized local variable. With this patch results are consistent, as expected. Signed-off-by: Jason Baron <jbaron@akamai.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
574979c617
commit
bd8c154a62
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ static int ddebug_parse_query(char *words[], int nwords,
|
|||
struct ddebug_query *query, const char *modname)
|
||||
{
|
||||
unsigned int i;
|
||||
int rc;
|
||||
int rc = 0;
|
||||
|
||||
/* check we have an even number of words */
|
||||
if (nwords % 2 != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue