Files
i2som-imx-linux/include/linux
Dexuan Cui a912e16fae Drivers: hv: vmbus: Check for ring when getting debug info
commit ba50bf1ce9 upstream.

fc96df16a1 is good and can already fix the "return stack garbage" issue,
but let's also improve hv_ringbuffer_get_debuginfo(), which would silently
return stack garbage, if people forget to check channel->state or
ring_info->ring_buffer, when using the function in the future.

Having an error check in the function would eliminate the potential risk.

Add a Fixes tag to indicate the patch depdendency.

Fixes: fc96df16a1 ("Drivers: hv: vmbus: Return -EINVAL for the sys files for unopened channels")
Cc: stable@vger.kernel.org
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-31 08:14:36 +01:00
..
2018-11-21 09:19:16 +01:00
2018-08-22 10:52:48 -07:00
2018-11-13 11:08:50 -08:00
2018-09-04 21:31:43 +02:00
2018-08-22 10:52:45 -07:00
2018-08-22 10:52:46 -07:00
2019-01-31 08:14:31 +01:00
2018-08-16 12:14:42 -07:00
2018-11-13 11:08:51 -08:00