Re: [PATCH net-next 1/9] debugfs: make sure we can remove u32_array files cleanly

2020-07-08 Thread Greg Kroah-Hartman
On Tue, Jul 07, 2020 at 02:24:26PM -0700, Jakub Kicinski wrote: > debugfs_create_u32_array() allocates a small structure to wrap > the data and size information about the array. If users ever > try to remove the file this leads to a leak since nothing ever > frees this wrapper. > > That said there

[PATCH net-next 1/9] debugfs: make sure we can remove u32_array files cleanly

2020-07-07 Thread Jakub Kicinski
debugfs_create_u32_array() allocates a small structure to wrap the data and size information about the array. If users ever try to remove the file this leads to a leak since nothing ever frees this wrapper. That said there are no upstream users of debugfs_create_u32_array() that'd remove a u32 arr