OSDN Git Service

Drivers: hv: vmus: Fix the check for return value from kmsg get dump buffer
authorSunil Muthuswamy <sunilmut@microsoft.com>
Sat, 28 Jul 2018 21:58:45 +0000 (21:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Jul 2018 06:09:56 +0000 (08:09 +0200)
commitddcaf3ca4c3c87b955ad6f57952250030be77791
tree2c628f32112f522edad3db42c33733cf8a4f92a2
parent2d8bc61952270adab57d84dac8abc8166aee608b
Drivers: hv: vmus: Fix the check for return value from kmsg get dump buffer

The code to support panic control message was checking the return was
checking the return value from kmsg_dump_get_buffer as error value, which
is not what the routine returns. This fixes it.

Fixes: 81b18bce48af ("Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic")

Signed-off-by: Sunil Muthuswamy <sunilmut@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/vmbus_drv.c