mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
drivers/base/devtmpfs.c: don't pretend path is const in delete_path
path is the result of kstrdup, and we repeatedly call strrchr on it, modifying it through the returned pointer. So there's no reason to pretend path is const. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8f5be0ec23
commit
be6b1dfe95
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ static int dev_rmdir(const char *name)
|
|||
|
||||
static int delete_path(const char *nodepath)
|
||||
{
|
||||
const char *path;
|
||||
char *path;
|
||||
int err = 0;
|
||||
|
||||
path = kstrdup(nodepath, GFP_KERNEL);
|
||||
|
|
Loading…
Reference in a new issue