aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorDaniele Alessandrelli <[email protected]>2021-01-18 16:59:04 +0000
committerBjorn Andersson <[email protected]>2021-02-09 16:42:55 -0600
commit43d3f2c715cefcfb89b10675728e9bf0d8bb98e3 (patch)
treeb399ca74436e6dd77e2400f0448a6383af7d16fa /scripts/gdb/linux/tasks.py
parentca23ecfdbd44bac02cb6964a3793c565a389af96 (diff)
remoteproc: core: Fix rproc->firmware free in rproc_set_firmware()
rproc_alloc_firmware() (called by rproc_alloc()) can allocate rproc->firmware using kstrdup_const() and therefore should be freed using kfree_const(); however, rproc_set_firmware() frees it using the simple kfree(). This causes a kernel oops if a constant string is passed to rproc_alloc() and rproc_set_firmware() is subsequently called. Fix the above issue by using kfree_const() to free rproc->firmware in rproc_set_firmware(). Reviewed-by: Mathieu Poirier <[email protected]> Signed-off-by: Daniele Alessandrelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions