Re: [PATCH net] be2net: Avoid accessing eq object in be_msix_register routine, when i < 0.

2015-12-18 Thread David Miller
From: Venkat Duvvuru 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 addres

[PATCH net] be2net: Avoid accessing eq object in be_msix_register routine, when i < 0.

2015-12-17 Thread Venkat Duvvuru
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 e