loader: fix sysfs uevent file parsing
authorFrank Binns <frank.binns@imgtec.com>
Thu, 4 Aug 2016 14:15:23 +0000 (15:15 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 1 Sep 2016 14:48:34 +0000 (15:48 +0100)
commitd5f65b8bf54574e45d73938702fb5505449c1b5d
treef832cb4505cd5c957cefdf30d9c2dcec8e1130b0
parentd6f669ba834697b7321c7ea2cbb38794385c7205
loader: fix sysfs uevent file parsing

When trying to get a device name for an fd using sysfs, it would always fail
as it was expecting key/value pairs to be delimited by '\0', which is not the
case.

Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/loader/loader.c