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-05-05 09:22:21 -06:00
2020-05-05 09:22:21 -06:00
2020-05-28 22:09:47 -04:00
2020-02-13 11:21:35 -07:00
2020-05-05 09:22:24 -06:00
2020-04-28 12:32:31 -06:00
2020-03-02 13:58:44 -07:00
2020-03-02 14:01:06 -07:00
2020-04-30 12:56:38 -07:00
2019-05-24 15:03:39 -06:00
2020-03-02 14:01:25 -07:00
2019-11-18 12:19:59 -07:00
2020-05-05 09:22:21 -06:00
2020-03-02 14:01:25 -07:00
2020-03-02 14:01:26 -07:00
2020-03-02 14:01:28 -07:00
2020-04-08 21:44:05 -07:00
2020-05-05 09:22:21 -06:00
2020-05-05 09:23:25 -06:00
2020-03-02 14:02:07 -07:00
2020-06-15 09:32:10 -07:00
2020-07-10 13:54:00 -07:00
2020-05-05 09:22:21 -06:00
2019-07-31 13:31:05 -06:00
2020-03-02 14:02:24 -07:00
2020-05-05 09:22:22 -06:00
2020-03-20 17:01:29 -06:00
2020-05-25 18:59:59 -06:00
2020-03-02 14:02:57 -07:00
2020-03-02 14:02:59 -07:00
2020-03-02 14:03:16 -07:00
2020-06-09 11:28:59 -07:00
2020-06-05 16:19:28 -07:00
2020-05-05 09:22:22 -06:00
2020-05-19 09:34:18 -07:00
2019-11-13 12:15:34 -08:00
2020-05-05 09:22:22 -06:00
2020-03-10 11:55:25 -06:00
2020-06-02 19:45:05 +02:00
2020-03-02 14:03:35 -07:00
2020-03-02 14:03:18 -07:00
2020-03-02 14:03:48 -07:00
2020-03-02 14:03:47 -07:00
2020-03-02 14:03:48 -07:00
2020-06-08 12:47:09 -07:00
2020-03-02 14:03:55 -07:00
2020-03-02 14:04:06 -07:00
2019-03-06 09:46:10 -07:00
2020-06-11 10:33:13 -07:00
2020-05-05 09:22:22 -06:00
2020-05-05 09:22:22 -06:00
2020-05-05 09:22:23 -06:00
2020-03-02 14:04:06 -07:00
2020-03-02 14:04:06 -07:00
2020-03-02 14:04:06 -07:00
2020-03-02 14:04:08 -07:00
2020-03-02 14:04:26 -07:00
2020-04-28 12:35:47 -06:00
2020-05-13 11:11:24 +02:00
2020-03-13 21:08:19 -04:00
2020-06-08 09:30:19 -06:00
2020-06-04 10:48:19 +02:00
2020-06-04 13:54:34 -07:00
2020-04-07 13:20:56 -06:00
2020-05-05 09:22:23 -06:00
2020-04-20 15:45:22 -06:00
2020-03-02 14:04:41 -07:00
2020-03-02 14:04:41 -07:00
2020-06-08 09:30:19 -06:00
2020-05-05 09:22:23 -06:00
2019-03-06 09:46:10 -07:00
2020-03-02 14:04:41 -07:00
2020-05-05 09:22:24 -06:00
2020-05-05 09:22:24 -06:00
2020-04-20 15:45:22 -06:00
2020-03-02 14:04:41 -07:00
2020-03-02 14:04:41 -07:00
2020-03-02 14:04:41 -07:00
2020-03-02 14:04:41 -07:00
2020-03-02 14:04:52 -07:00
2020-01-10 10:58:45 -07:00
2020-06-02 10:59:06 -07:00
2020-04-20 17:01:34 +02:00
2020-05-05 09:22:24 -06:00
2020-06-02 19:21:40 -07:00
2020-03-30 12:45:23 -07:00