diff options
author | Dan Carpenter <[email protected]> | 2018-10-26 10:19:51 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-11-11 09:21:46 -0800 |
commit | 432798195bbce1f8cd33d1c0284d0538835e25fb (patch) | |
tree | bb33155c3b0cb77622e2352520ccd95b9a377e62 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8bb0a88600f0267cfcc245d34f8c4abe8c282713 (diff) |
uio: Fix an Oops on load
I was trying to solve a double free but I introduced a more serious
NULL dereference bug. The problem is that if there is an IRQ which
triggers immediately, then we need "info->uio_dev" but it's not set yet.
This patch puts the original initialization back to how it was and just
sets info->uio_dev to NULL on the error path so it should solve both
the Oops and the double free.
Fixes: f019f07ecf6a ("uio: potential double frees if __uio_register_device() fails")
Reported-by: Mathias Thore <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Cc: stable <[email protected]>
Tested-by: Mathias Thore <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions