Jakub Kicinski
a2b992c828
debugfs: make sure we can remove u32_array files cleanly
...
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 array file (we only have one u32 array user in
CMA), so there is no real bug here.
Make callers pass a wrapper they allocated. This way the lifetime
management of the wrapper is on the caller, and we can avoid the
potential leak in debugfs.
CC: Chucheng Luo <luochucheng@vivo.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-07-10 13:54:00 -07:00
..
2020-06-04 19:06:21 -07:00
2020-05-09 16:15:13 -06:00
2019-09-04 07:42:01 -04:00
2019-07-12 12:24:03 -07:00
2020-07-10 13:54:00 -07:00
2020-04-10 15:36:21 -07:00
2020-07-10 13:54:00 -07:00
2020-06-04 19:06:23 -07:00
2017-11-02 11:10:55 +01:00
2020-06-10 19:14:18 -07:00
2020-06-17 10:57:41 -07:00
2020-04-07 10:43:42 -07:00
2020-01-31 10:30:38 -08:00
2020-06-02 10:59:06 -07:00
2019-07-12 11:05:43 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-04 19:06:24 -07:00
2020-04-02 09:35:27 -07:00
2020-06-20 22:14:53 +10:00
2019-12-10 10:12:55 +01:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-04-07 10:43:41 -07:00
2020-06-09 09:39:14 -07:00
2019-12-01 12:59:09 -08:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2019-06-19 17:09:08 +02:00
2020-06-07 17:25:29 -07:00
2020-06-14 01:57:21 +09:00
2020-06-09 09:39:14 -07:00
2019-06-05 17:37:06 +02:00
2020-04-02 09:35:26 -07:00
2020-06-09 09:39:14 -07:00
2020-06-04 19:06:24 -07:00
2020-06-17 10:57:41 -07:00
2020-06-09 09:39:14 -07:00
2020-06-11 18:55:43 -07:00
2020-04-02 09:35:29 -07:00
2020-06-04 19:06:23 -07:00
2020-06-09 09:39:14 -07:00
2019-09-24 15:54:08 -07:00
2020-06-10 13:42:09 -07:00
2020-06-11 18:17:47 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2019-03-05 21:07:20 -08:00
2020-04-10 15:36:21 -07:00
2017-11-02 11:10:55 +01:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-02 10:59:12 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2017-11-02 11:10:55 +01:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-10 19:14:18 -07:00
2020-06-10 13:42:09 -07:00
2020-04-02 09:35:29 -07:00
2020-04-07 10:43:40 -07:00
2020-06-08 11:05:55 -07:00
2020-06-09 09:39:13 -07:00
2020-06-04 15:36:52 -04:00
2020-06-03 20:09:45 -07:00
2019-09-24 15:54:08 -07:00
2020-04-07 10:43:39 -07:00
2020-06-09 09:39:13 -07:00
2020-01-31 10:30:38 -08:00
2020-06-04 19:06:24 -07:00
2020-06-09 09:39:14 -07:00
2019-03-13 12:25:31 -07:00
2019-06-05 17:37:16 +02:00
2020-04-01 10:09:12 -07:00
2019-06-05 17:37:16 +02:00
2020-06-02 10:59:11 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-02 10:59:07 -07:00
2020-06-09 09:39:14 -07:00
2020-06-17 10:57:41 -07:00
2020-06-09 09:39:14 -07:00
2020-04-07 10:43:38 -07:00
2020-04-07 10:43:38 -07:00
2020-06-02 10:59:06 -07:00
2020-06-03 20:09:44 -07:00
2020-04-02 09:35:28 -07:00
2020-03-26 14:45:51 +01:00
2020-06-17 10:57:41 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-03 20:09:48 -07:00
2020-04-02 09:35:27 -07:00
2020-06-09 09:39:14 -07:00
2020-06-03 20:09:49 -07:00
2020-06-09 09:39:14 -07:00
2019-10-19 06:32:33 -04:00
2019-09-17 15:20:17 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-10 19:14:18 -07:00
2020-06-04 19:06:21 -07:00
2020-04-02 09:35:31 -07:00
2020-06-04 19:06:23 -07:00
2020-06-04 19:06:26 -07:00
2020-06-03 20:09:49 -07:00
2020-05-28 11:35:40 -07:00
2020-06-04 19:06:24 -07:00
2019-09-24 15:54:12 -07:00
2020-06-09 09:39:13 -07:00
2020-04-07 10:43:41 -07:00