aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorPierre-Louis Bossart <[email protected]>2020-05-15 16:15:30 -0500
committerMark Brown <[email protected]>2020-05-18 12:38:29 +0100
commit07b542fe831cbefce163ad1b3aa7292c8a6332b8 (patch)
treeb976969b8e31e151544c9d1e207324c0fbaf9d67 /drivers/usb/cdns3/cdns3-debug.h
parentb5dff6ec13260585164d4cd13d7a3ec79bd26acb (diff)
ASoC: codecs: rt*-sdw: fix memory leak in set_sdw_stream()
Now that the sdw_stream is allocated in machine driver, set_sdw_stream() is also called with a NULL argument during the dailink shutdown. In this case, the drivers should not allocate any memory, and just return. Detected with KASAN/kmemleak. Signed-off-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Guennadi Liakhovetski <[email protected]> Reviewed-by: Rander Wang <[email protected]> Cc: Oder Chiou <[email protected]> Cc: Shuming Fan <[email protected]> Cc: Jack Yu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions