diff options
| author | Ondrej Mosnacek <[email protected]> | 2021-05-12 14:32:10 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2021-05-14 20:38:19 +0000 |
| commit | 869cbeef18e5c4370157e733b947d44f37441ea9 (patch) | |
| tree | fb5bed2397fc5a90fdd06d6ae4c182b6b7f0afa1 /drivers/net/wwan/iosm/iosm_ipc_protocol.c | |
| parent | selinux: Remove redundant assignment to rc (diff) | |
| download | kernel-869cbeef18e5c4370157e733b947d44f37441ea9.tar.gz kernel-869cbeef18e5c4370157e733b947d44f37441ea9.zip | |
lsm_audit,selinux: pass IB device name by reference
While trying to address a Coverity warning that the dev_name string
might end up unterminated when strcpy'ing it in
selinux_ib_endport_manage_subnet(), I realized that it is possible (and
simpler) to just pass the dev_name pointer directly, rather than copying
the string to a buffer.
The ibendport variable goes out of scope at the end of the function
anyway, so the lifetime of the dev_name pointer will never be shorter
than that of ibendport, thus we can safely just pass the dev_name
pointer and be done with it.
Signed-off-by: Ondrej Mosnacek <[email protected]>
Acked-by: Richard Guy Briggs <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_protocol.c')
0 files changed, 0 insertions, 0 deletions
