diff options
author | Kees Cook <[email protected]> | 2018-10-05 15:51:48 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-10-05 16:32:04 -0700 |
commit | 59cf0a9339ca4b0226e9b4329dfb0a5b8b0b9bc2 (patch) | |
tree | 0c62dcc4bffed5289923ac1f4212cd7f93911d4c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 51896864579d5a3349740847083f4db5c6487164 (diff) |
ipc/shm.c: use ERR_CAST() for shm_lock() error return
This uses ERR_CAST() instead of an open-coded cast, as it is casting
across structure pointers, which upsets __randomize_layout:
ipc/shm.c: In function `shm_lock':
ipc/shm.c:209:9: note: randstruct: casting between randomized structure pointer types (ssa): `struct shmid_kernel' and `struct kern_ipc_perm'
return (void *)ipcp;
^~~~~~~~~~~~
Link: http://lkml.kernel.org/r/20180919180722.GA15073@beast
Fixes: 82061c57ce93 ("ipc: drop ipc_lock()")
Signed-off-by: Kees Cook <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Manfred Spraul <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Andrew Morton <[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