Re: [PATCH net-next] bonding: don't cast const buf in sysfs store

2018-07-22 Thread David Miller
From: Nikolay Aleksandrov Date: Sun, 22 Jul 2018 11:37:31 +0300 > As was recently discussed [1], let's avoid casting the const buf in > bonding_sysfs_store_option and use kstrndup/kfree instead. > > [1] http://lists.openwall.net/netdev/2018/07/22/25 > > Signed-off-by: Nikolay Aleksandrov

[PATCH net-next] bonding: don't cast const buf in sysfs store

2018-07-22 Thread Nikolay Aleksandrov
As was recently discussed [1], let's avoid casting the const buf in bonding_sysfs_store_option and use kstrndup/kfree instead. [1] http://lists.openwall.net/netdev/2018/07/22/25 Signed-off-by: Nikolay Aleksandrov --- drivers/net/bonding/bond_sysfs.c | 7 ++- 1 file changed, 6