aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/soc/dove
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2018-12-17 20:16:09 +0000
committerSasha Levin <sashal@kernel.org>2019-01-09 14:20:47 -0500
commitba50bf1ce9a51fc97db58b96d01306aa70bc3979 (patch)
treee43d0dce0b0db7d34d931254351210ab1a4e2fc1 /drivers/soc/dove
parentbfeffd155283772bbe78c6a05dec7c0128ee500c (diff)
downloadkernel_replicant_linux-ba50bf1ce9a51fc97db58b96d01306aa70bc3979.tar.gz
kernel_replicant_linux-ba50bf1ce9a51fc97db58b96d01306aa70bc3979.tar.bz2
kernel_replicant_linux-ba50bf1ce9a51fc97db58b96d01306aa70bc3979.zip
Drivers: hv: vmbus: Check for ring when getting debug info
fc96df16a1ce 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: fc96df16a1ce ("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>
Diffstat (limited to 'drivers/soc/dove')
0 files changed, 0 insertions, 0 deletions