diff options
-rw-r--r-- | usr.sbin/pccard/pccardd/cardd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c index 769785d..c7dedac 100644 --- a/usr.sbin/pccard/pccardd/cardd.c +++ b/usr.sbin/pccard/pccardd/cardd.c @@ -318,7 +318,9 @@ static void read_ether(struct slot *sp) { unsigned char net_addr[12]; + int flags = MDF_ATTR; /* attribute memory */ + ioctl(sp->fd, PIOCRWFLAG, &flags); lseek(sp->fd, (off_t)sp->card->ether->value, SEEK_SET); if (read(sp->fd, net_addr, sizeof(net_addr)) != sizeof(net_addr)) { logerr("read err on net addr"); |