summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2020-05-23 13:26:50 -0700
committerDavid S. Miller <davem@davemloft.net>2020-06-02 18:37:58 -0700
commit89138af9ffdb842f8730d3cfcce449533f98dce3 (patch)
tree66c42a8a395bf4517c204a4f44d09efd70ba791d
parent5abd902f751e279c69e7366e72dfb8fa2c3cecaa (diff)
downloadsilo-89138af9ffdb842f8730d3cfcce449533f98dce3.tar.gz
second: Fix typo'd operator
Note that this does change the behavior of the code. After the patch only < 2.6 PROMs will fail (which is probably correct), instead of every 2.* like now. Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--second/disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/second/disk.c b/second/disk.c
index 40234b3..b81a465 100644
--- a/second/disk.c
+++ b/second/disk.c
@@ -293,7 +293,7 @@ int silo_disk_read(char *buff, int size, unsigned long long offset)
if (!net) {
if (prom_vers != PROM_P1275) {
if (((romvec->pv_printrev >> 16) < 2 ||
- ((romvec->pv_printrev >> 16) == 2 && (romvec->pv_printrev && 0xffff) < 6))
+ ((romvec->pv_printrev >> 16) == 2 && (romvec->pv_printrev & 0xffff) < 6))
&& offset >= 0x40000000) {
printf ("Buggy old PROMs don't allow reading past 1GB from start of the disk. Send complaints to SMCC\n");
return -1;