blockd: fix segfault triggered by non-autofs mounts
authorDaniel Golle <daniel@makrotopia.org>
Mon, 11 May 2020 23:26:28 +0000 (00:26 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 11 May 2020 23:41:59 +0000 (00:41 +0100)
commit84269037b75de93bdd4ea75b7f50ba77ba976377
tree64c3b66078ed873b31750814e6285f7eb6e7caae
parenteec16e2f275dc3dcf71e4a27dd608d3dc8f8df1a
blockd: fix segfault triggered by non-autofs mounts

Program received signal SIGSEGV, Segmentation fault.
main_autofs (argv=<optimized out>, argc=<optimized out>)
    at fstools-2020-05-06-eec16e2f/block.c:1193
1193:    if (!m->autofs && (mp = find_mount_point(pr->dev))) {

Fixes: 9ab936d ("block(d): always call hotplug.d "mount" scripts from blockd")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
block.c