Re: [PATCH] qmi: avoid free of non heap object

[email protected] Fri, 27 Jun 2025 21:20:05 +0000
Newsgroups dev.linux.lists.ofono
Message-ID <175105920526.2062756.3028536748527933023.git-patchwork-notify@kernel.org>
Hello:

This patch was applied to ofono.git (master)
by Denis Kenzior <[email protected]>:

On Thu, 26 Jun 2025 10:16:24 +0200 you wrote:
> qmux_create_client_timeout() free's a non heap object, avoid calling
> __request_free() and inline free_request() instead.
> 
> In function 'l_free',
>     inlined from '__request_free' at drivers/qmimodem/qmi.c:293:3,
>     inlined from 'qmux_create_client_timeout' at drivers/qmimodem/qmi.c:1427:2:
> ell/util.c:124:9: warning: 'free' called on pointer 'user_data_6(D)' with nonzero offset 28 [-Wfree-nonheap-object]
>   124 |         free(ptr);
>       |         ^
> 
> [...]

Here is the summary with links:
  - qmi: avoid free of non heap object
    https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=8d892785e47b

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html