diff options
author | Andrew Jeffery <andrew@codeconstruct.com.au> | 2025-06-16 22:43:40 +0930 |
---|---|---|
committer | Andrew Jeffery <andrew@codeconstruct.com.au> | 2025-07-08 11:35:03 +0930 |
commit | 3795e993931f2120bf64b8cdf03bb8c4f988b920 (patch) | |
tree | a9afe5f0d5e5622126748162aa34acb3fc9d77d3 /net/lapb/lapb_out.c | |
parent | 56448e78a6bb4e1a8528a0e2efe94eff0400c247 (diff) |
soc: aspeed: lpc-snoop: Ensure model_data is valid
of_device_get_match_data() can return NULL, though shouldn't in current
circumstances. Regardless, initialise model_data closer to use so it's
clear we need to test for validity prior to dereferencing.
Acked-by: Jean Delvare <jdelvare@suse.de>
Link: https://patch.msgid.link/20250616-aspeed-lpc-snoop-fixes-v2-3-3cdd59c934d3@codeconstruct.com.au
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions