discover/udev: copy dev->device path from udev devnode
authorJeremy Kerr <jk@ozlabs.org>
Fri, 29 Nov 2013 05:44:54 +0000 (13:44 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 2 Dec 2013 04:05:13 +0000 (12:05 +0800)
commitc4f34e487fbf061ee6385d1f75e4ef0084c9a1ba
tree0391dd15dabad5369c3505bd033b36de04b1a057
parent9e5b77f258b8e993f480763d8e5269bd8c87b508
discover/udev: copy dev->device path from udev devnode

We're seeing a use-after-free, as the udev path is freed before the
discover device.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/udev.c