linux/drivers/soundwire
Pierre-Louis Bossart 05c8afe425 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 <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190806005522.22642-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2019-08-21 14:36:01 +05:30
..
bus_type.c soundwire: bus_type: fix alignment issues 2019-05-02 17:16:27 +02:00
bus.c soundwire: bus: split handling of Device0 events 2019-08-02 22:29:38 +05:30
bus.h soundwire: fix alignment issues in header files 2019-05-02 17:16:26 +02:00
cadence_master.c soundwire: cadence_master: simplify bus clash interrupt clear 2019-08-02 17:36:47 +05:30
cadence_master.h soundwire: fix alignment issues in header files 2019-05-02 17:16:26 +02:00
intel_init.c soundwire: intel_init: add checks on link numbers 2019-05-27 10:53:00 +05:30
intel.c soundwire: intel: prevent possible dereference in hw_params 2019-08-21 14:36:01 +05:30
intel.h soundwire: fix typo in comments 2019-05-27 10:53:00 +05:30
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mipi_disco.c soundwire: mipi_disco: Switch to use fwnode_property_count_uXX() 2019-08-02 17:15:13 +05:30
slave.c soundwire: slave: fix alignment issues 2019-05-02 17:16:28 +02:00
stream.c soundwire updates for v5.3-rc1 2019-07-05 08:15:08 +02:00