aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorPierre-Louis Bossart <[email protected]>2019-08-05 19:55:06 -0500
committerVinod Koul <[email protected]>2019-08-21 14:36:01 +0530
commit05c8afe42559c98f89022431e457bfbdaf01c806 (patch)
treeba6c5482009bbb8af24fa372f6dd91cd0ab2baa6 /drivers/usb/cdns3/cdns3-debug.h
parent15ed3ea2280e3afaea82afa664a6d1adc65b0009 (diff)
soundwire: intel: prevent possible dereference in hw_params
This should not happen in production systems but we should test for all callback arguments before invoking the config_stream callback. Update the prototype to clarify that the first argument is mandatory. Also use local variable instead of multiple dereferences to improve readability. Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions