diff options
| author | Andrew Goodbody <[email protected]> | 2025-08-11 18:03:39 +0100 |
|---|---|---|
| committer | Casey Connolly <[email protected]> | 2025-08-13 15:17:36 +0200 |
| commit | f236451cb426fc3edaf756dac6346cd6273179b8 (patch) | |
| tree | b49a4288af7a750ec28d332c2c576058c0218a6b /scripts/basic | |
| parent | 23e1a11f4e8e3333ddcbff3bf88763c711340fe2 (diff) | |
serial: msm-geni: Detect error from get_clk_div_rate
In msm_serial_setbrg if the call to get_clk_div_rate fails then there
will not have been an assignment to clk_div which will lead to the call
to geni_serial_baud using an uninitialised value.
Check for an error from get_clk_div_rate and return an error code if so.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <[email protected]>
Reviewed-by: Casey Connolly <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Casey Connolly <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
