msgbuf: use only relevant caps for the cache key
This commit is contained in:
parent
e62ec6f17c
commit
d5e424bcff
1 changed files with 2 additions and 0 deletions
|
@ -443,6 +443,8 @@ msgbuf_cache_get(struct MsgBuf_cache *cache, unsigned int caps)
|
||||||
struct MsgBuf_cache_entry *tail = NULL;
|
struct MsgBuf_cache_entry *tail = NULL;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
|
caps &= cache->overall_capmask;
|
||||||
|
|
||||||
while (entry != NULL) {
|
while (entry != NULL) {
|
||||||
if (entry->caps == caps) {
|
if (entry->caps == caps) {
|
||||||
/* Cache hit */
|
/* Cache hit */
|
||||||
|
|
Loading…
Reference in a new issue