X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=sound%2Fsoc%2Fsof%2Fdebug.c;h=d2b3b99d3a20446865fa91c33e1cb931926af98a;hb=992fd39a349ac62044d9e20d17d309c2cf0f5c27;hp=b8a4e899154c633e7960b7792ea11aa28fef1e8c;hpb=18dd66ea84464a4bc86089276d5f75cadeb94a09;p=sfrench%2Fcifs-2.6.git diff --git a/sound/soc/sof/debug.c b/sound/soc/sof/debug.c index b8a4e899154c..d2b3b99d3a20 100644 --- a/sound/soc/sof/debug.c +++ b/sound/soc/sof/debug.c @@ -152,8 +152,10 @@ static ssize_t sof_dfsentry_write(struct file *file, const char __user *buffer, */ dentry = file->f_path.dentry; if (strcmp(dentry->d_name.name, "ipc_flood_count") && - strcmp(dentry->d_name.name, "ipc_flood_duration_ms")) - return -EINVAL; + strcmp(dentry->d_name.name, "ipc_flood_duration_ms")) { + ret = -EINVAL; + goto out; + } if (!strcmp(dentry->d_name.name, "ipc_flood_duration_ms")) flood_duration_test = true;