Skip to content

Commit c31a953

Browse files
committed
Revert "switchtec: Fix Spectre v1 vulnerability"
This reverts commit 6c2b323.
1 parent 18e77cb commit c31a953

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

switchtec.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <linux/poll.h>
2626
#include <linux/wait.h>
2727
#include <linux/io-64-nonatomic-lo-hi.h>
28-
#include <linux/nospec.h>
2928

3029
#include "version.h"
3130
MODULE_DESCRIPTION("Microsemi Switchtec(tm) PCIe Management Driver");
@@ -965,8 +964,6 @@ static int ioctl_port_to_pff(struct switchtec_dev *stdev,
965964
default:
966965
if (p.port > ARRAY_SIZE(pcfg->dsp_pff_inst_id))
967966
return -EINVAL;
968-
p.port = array_index_nospec(p.port,
969-
ARRAY_SIZE(pcfg->dsp_pff_inst_id) + 1);
970967
p.pff = ioread32(&pcfg->dsp_pff_inst_id[p.port - 1]);
971968
break;
972969
}

0 commit comments

Comments
 (0)