From: Greg Kroah-Hartman Date: Wed, 4 Dec 2013 19:26:20 +0000 (-0800) Subject: staging: lustre: reapply an older patch that was reverted X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=877494a7e29c38b0203b32012f7f673304693437;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: lustre: reapply an older patch that was reverted This reapplies part of 9edf0f670bdc8fa8b6676893b0a3bd2bf3 (staging: lustre: clean up format string usages) as it was reverted in a recent change to this file. That proves the big problem of having external trees you have to have patches flowing back into them from upstream or things break down... Reported-by: Kees Cook Reported-by: kbuild test robot Cc: Peng Tao Cc: Andreas Dilger Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c b/drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c index 8a95fa5e1052..2d26fd543d46 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c +++ b/drivers/staging/lustre/lustre/ptlrpc/ptlrpcd.c @@ -636,7 +636,7 @@ int ptlrpcd_start(int index, int max, const char *name, struct ptlrpcd_ctl *pc) GOTO(out_env, rc); } - task = kthread_run(ptlrpcd, pc, pc->pc_name); + task = kthread_run(ptlrpcd, pc, "%s", pc->pc_name); if (IS_ERR(task)) GOTO(out_env, rc = PTR_ERR(task));