diff options
| author | Daniel Starke <[email protected]> | 2022-04-25 10:47:26 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-04-26 06:09:46 +0000 |
| commit | 19317433057dc1f2ca9a975e4e6b547282c2a5ef (patch) | |
| tree | 30f37c3b05088590e258a046256c04547fdba586 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | serial: 8250: Correct the clock for EndRun PTP/1588 PCIe device (diff) | |
| download | kernel-19317433057dc1f2ca9a975e4e6b547282c2a5ef.tar.gz kernel-19317433057dc1f2ca9a975e4e6b547282c2a5ef.zip | |
tty: n_gsm: fix sometimes uninitialized warning in gsm_dlci_modem_output()
'size' may be used uninitialized in gsm_dlci_modem_output() if called with
an adaption that is neither 1 nor 2. The function is currently only called
by gsm_modem_upd_via_data() and only for adaption 2.
Properly handle every invalid case by returning -EINVAL to silence the
compiler warning and avoid future regressions.
Fixes: c19ffe00fed6 ("tty: n_gsm: fix invalid use of MSC in advanced option")
Cc: [email protected]
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Daniel Starke <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
