bus: fix callback index when dispatching kernel messages

This commit is contained in:
Lennart Poettering
2013-11-29 22:02:14 +01:00
parent 7d22c71732
commit 51502af33d

View File

@@ -561,7 +561,7 @@ static int bus_kernel_translate_message(sd_bus *bus, struct kdbus_msg *k) {
return 0;
}
return translate[found->type](bus, k, d);
return translate[found->type - _KDBUS_ITEM_KERNEL_BASE](bus, k, found);
}
int kdbus_translate_attach_flags(uint64_t mask, uint64_t *kdbus_mask) {