RE: [PATCH 1/1] drivers: hv: Fix wrong check for synic_event_page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Felipe Pena [mailto:felipensp@xxxxxxxxx]
> Sent: Tuesday, October 15, 2013 4:23 PM
> To: KY Srinivasan; Haiyang Zhang
> Cc: devel@xxxxxxxxxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Felipe Pena
> Subject: [PATCH 1/1] drivers: hv: Fix wrong check for synic_event_page
> 
> The check for calling free_page() on hv_context.synic_event_page[cpu] is the
> same for hv_context.synic_message_page[cpu], like a copy-paste error.
> 
> Signed-off-by: Felipe Pena <felipensp@xxxxxxxxx>

Thanks Felipe.

Signed-off-by: K. Y. Srinivasan <kys@xxxxxxxxxxxxx>

K. Y


> ---
>  drivers/hv/hv.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
> index 88f4096..f0c5e07 100644
> --- a/drivers/hv/hv.c
> +++ b/drivers/hv/hv.c
> @@ -304,7 +304,7 @@ err:
>  void hv_synic_free_cpu(int cpu)
>  {
>  	kfree(hv_context.event_dpc[cpu]);
> -	if (hv_context.synic_message_page[cpu])
> +	if (hv_context.synic_event_page[cpu])
>  		free_page((unsigned long)hv_context.synic_event_page[cpu]);
>  	if (hv_context.synic_message_page[cpu])
>  		free_page((unsigned
> long)hv_context.synic_message_page[cpu]);
> --
> 1.7.10.4

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux