From c5e3035c88cbefe60ec155b3f9999413da1ee694 Mon Sep 17 00:00:00 2001 From: Alexander Gordeev Date: Wed, 19 Feb 2014 09:58:18 +0100 Subject: [PATCH] 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-format-patch failed