chiark / gitweb /
bus: fix capabilities on big-endian
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 30 Dec 2014 08:09:41 +0000 (09:09 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 30 Dec 2014 08:09:41 +0000 (09:09 +0100)
The kernel provides capabilities as a u32 array, sd-bus uses an u8 array.
This works fine on little-endian as both are encoded the same way.
However, this fails on big-endian if we do not perform sufficient
byte-swapping on each u32 entry.

This patch makes sd-bus use u32, too. We avoid changing any kernel
provided data so we can keep pointing into kdbus pool buffers which
contain u32 arrays.


No differences found