msgbuf: use only relevant caps for the cache key

This commit is contained in:
Ed Kellett 2021-06-12 02:18:40 +01:00
parent e62ec6f17c
commit d5e424bcff

View file

@ -443,6 +443,8 @@ msgbuf_cache_get(struct MsgBuf_cache *cache, unsigned int caps)
struct MsgBuf_cache_entry *tail = NULL;
int n = 0;
caps &= cache->overall_capmask;
while (entry != NULL) {
if (entry->caps == caps) {
/* Cache hit */