From aaef2a4e02e13677914b7bb6d2823cd38d3cfb1b Mon Sep 17 00:00:00 2001 From: ma Date: Mon, 11 Jan 2021 15:47:17 +0100 Subject: [PATCH] set access flag if slot is filled --- usr/smc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/smc.c b/usr/smc.c index bbc7b7fc..7a9dec88 100644 --- a/usr/smc.c +++ b/usr/smc.c @@ -146,7 +146,7 @@ static int add_element_descriptor(uint8_t *data, struct slot *s, int i; /* data[] index */ *(uint16_t *)(data) = __cpu_to_be16(s->slot_addr); - data[2] = s->status; + data[2] = s->status | 0x8; data[3] = 0; /* Reserved */ data[4] = (s->asc >> 8) & 0xff; /* Additional Sense Code */ data[5] = s->asc & 0xff; /* Additional Sense Code Qualifier */