From: Alexander Gordeev Date: Wed, 19 Feb 2014 08:58:18 +0000 (+0100) Subject: skd: Fix out of array boundary access X-Git-Tag: v3.15-rc1~134^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5e3035c88cbefe60ec155b3f9999413da1ee694;p=pandora-kernel.git skd: Fix out of array boundary access When enabling MSI-X, interrupts are requested for SKD_MAX_MSIX_COUNT entries in skdev->msix_entries array, while the number of actually allocated entries is skdev->msix_count. This might lead to an out of boundary access in case number of allocated entries is less than SKD_MAX_MSIX_COUNT. This update fixes the described misbehaviour. Signed-off-by: Alexander Gordeev Cc: Jens Axboe Cc: Bartlomiej Zolnierkiewicz Cc: Kyungmin Park Cc: linux-pci@vger.kernel.org Signed-off-by: Jens Axboe --- Reading git-diff-tree failed