drivers/base/devtmpfs.c: don't pretend path is const in delete_path
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 22 Aug 2018 11:00:07 +0000 (13:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Sep 2018 20:37:16 +0000 (22:37 +0200)
commitbe6b1dfe95eda70bd031dc03d420d022fd536d63
tree7c9902373849fd1ee379ebc1f917bf8d21f33125
parent8f5be0ec23bb9ef3f96659c8dff1340b876600bf
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>
drivers/base/devtmpfs.c