diff options
author | Martin Kaiser <martin@kaiser.cx> | 2021-04-08 21:55:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-09 16:17:23 +0200 |
commit | ddc7e53e5eca4fa237ce3b1cc0a5f67674a1cdad (patch) | |
tree | 77c38925dd649b08e1c251dae80b539339ab7fcd /fs/fat | |
parent | e2794029df299754b5d7662f8e57a6c9ba423f1f (diff) | |
download | linux-ddc7e53e5eca4fa237ce3b1cc0a5f67674a1cdad.tar.bz2 |
staging: rtl8188eu: always free cmd_obj in the cmd thread
The rtl8188 driver starts a command thread that reads commands from a queue
and processes them. Each command consists of a struct cmd_obj. The command
thread may call a function to process the current command and optionally a
post-processing function. Eventually, the command's cmd_obj must be freed.
At the moment, if there's a post-processing function for the current
command, this function has to free the cmd_obj. If there's no
post-processing function, the command thread frees cmd_obj.
It's much simpler if we always leave it to the command thread to free
cmd_obj.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20210408195601.4762-9-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/fat')
0 files changed, 0 insertions, 0 deletions