names: fix total length of kvecs
authorDaniel Mack <daniel@zonque.org>
Fri, 9 Jan 2015 18:03:34 +0000 (19:03 +0100)
committerDaniel Mack <daniel@zonque.org>
Fri, 9 Jan 2015 18:06:29 +0000 (19:06 +0100)
commit1b9eb6b14afa9ffa96bd1245b1dc6ec9e4d86bbe
tree25017dc85a1d290604c912602e2f196ebffb0f0f
parentc98e18705070f5ffc8eafd22a48cef416aec19cc
names: fix total length of kvecs

Don't let kdbus_pool_slice_alloc() copy the kvecs along with allocating
the slice. The problem is that we only want to copy the header of the
block in this case, which doesn't work when the implicit behavior is
used.

Hence, open-code the functionality. Fixes an Ooops on 3.19-rc3.

Signed-off-by: Daniel Mack <daniel@zonque.org>
names.c