Skip to content

Commit

Permalink
Merge pull request #7 from urish/patch-1
Browse files Browse the repository at this point in the history
bugfix: don't mmap `/dev/mem` if `open()` fails
  • Loading branch information
sandeepmistry committed Jul 18, 2016
2 parents df09367 + 7458dd9 commit 949806c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/allwinner-r8.js
Expand Up @@ -76,6 +76,7 @@ AllwinnerR8.prototype.open = function(callback) {
fs.open('/dev/mem', 'rs+', function(err, fd) {
if (err) {
callback(err);
return;
}

this._fd = fd;
Expand Down

0 comments on commit 949806c

Please sign in to comment.