[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20151218.155118.779504200158181032.davem@davemloft.net>
Date: Fri, 18 Dec 2015 15:51:18 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: venkatkumar.duvvuru@...gotech.com
Cc: netdev@...r.kernel.org, venkatkumar.duvvuru@...r.kernel.org
Subject: Re: [PATCH net] be2net: Avoid accessing eq object in
be_msix_register routine, when i < 0.
From: Venkat Duvvuru <venkatkumar.duvvuru@...gotech.com>
Date: Fri, 18 Dec 2015 01:40:50 +0530
> When the first request_irq fails in be_msix_register, i value
> would be zero. The current code decrements the i value and
> accesses the eq object without validating the decremented
> "i" value. This can cause an "invalid memory address access"
> violation.
>
> This patch fixes the problem by accessing the eq object after
> validating the "i" value.
>
> Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@...gotech.com>
Applied, thank you.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists