diff options
| author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2026-04-30 17:33:53 +0300 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-05-03 19:27:43 +0300 |
| commit | 9a0afdd19a01c6edddb92eb6a464f9e99d946b90 (patch) | |
| tree | f69d81ab61bf784ab3af343a72715c5a2d132508 /scripts/git.orderFile | |
| parent | 254f49634ee16a731174d2ae34bc50bd5f45e731 (diff) | |
| download | linux-9a0afdd19a01c6edddb92eb6a464f9e99d946b90.tar.xz | |
soundwire: stream: sdw_stream_remove_slave(): Check stream is valid
In sdw_stream_remove_slave() check that stream is a valid pointer
before passing it to functions that dereference it. Return 0 if the
pointer is invalid.
This is a convenience for callers. They can safely call this function
during cleanup code without needing a pointer validity check duplicated
at every call point.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20260430143353.2702714-1-rf@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
