diff options
| author | Paul Moore <paul@paul-moore.com> | 2024-03-05 06:12:22 +0300 |
|---|---|---|
| committer | Paul Moore <paul@paul-moore.com> | 2024-03-26 23:42:09 +0300 |
| commit | 42c773238037c90b3302bf37a57ae3b5c3f6004a (patch) | |
| tree | a1c6d8f2408adb036f1b78d627452b3dd56a0285 /drivers/usb/cdns3/cdns3-ti.c | |
| parent | e6b5ebca41dda07b76b244462995502d9f6eb10b (diff) | |
| download | linux-42c773238037c90b3302bf37a57ae3b5c3f6004a.tar.xz | |
selinux: improve error checking in sel_write_load()
Move our existing input sanity checking to the top of sel_write_load()
and add a check to ensure the buffer size is non-zero.
Move a local variable initialization from the declaration to before it
is used.
Minor style adjustments.
Reported-by: Sam Sun <samsun1006219@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions
