diff options
author | Jack Morgenstein <[email protected]> | 2012-05-30 09:14:54 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2012-05-31 18:18:16 -0400 |
commit | 6230bb234dd17b4c92518e848368ce03f9802323 (patch) | |
tree | 4cad586a9fbed1568a687fe5aa67124f11b3cf98 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | b91cb3ebcd5ef8db956b8caa486d780dc52b07f1 (diff) |
net/mlx4_core: Check port out-of-range before using in mlx4_slave_cap
The range check was performed after using the port number.
Reverse this to prevent a potential array overflow.
Signed-off-by: Jack Morgenstein <[email protected]>
Reviewed-by: Or Gerlitz <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions