summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-03-29 18:44:09 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-03-29 18:44:09 +0200
commitbe71736dfa10e1c370799dcb046ca183e598bd86 (patch)
tree7ac3f9b9ef34b1d6917409da9bd280a3b3d6e838
parent67ce129c50621a3bd229e2b2e78e090739c2e95d (diff)
.
-rw-r--r--nvlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nvlib.h b/nvlib.h
index 959f349..c30b50d 100644
--- a/nvlib.h
+++ b/nvlib.h
@@ -1054,7 +1054,7 @@ struct nv_device : public nv_region
fc = v << 12;
else
fc = v << 8;
- if(fc >= 0xff000000)
+ if(fc >= ramin->size)
return 0;
return new nv_fifoctx(ramin, fc);
}