blockd: fix length of timeout int passed to ioctl
authorDaniel Golle <daniel@makrotopia.org>
Fri, 23 Jul 2021 23:14:57 +0000 (00:14 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 23 Jul 2021 23:27:06 +0000 (00:27 +0100)
commita846c6b98d59b55f1e761ffc5aa75077f6944689
tree89c6725c94dd9c47ed472d47f83cb58c5f809cd4
parent5114595bc37e441a905db6b05b4487ad67fcb3d1
blockd: fix length of timeout int passed to ioctl

AUTOFS_IOC_SETTIMEOUT expects a pointer to an 'unsigned long' which
will result in out-of-bounds access when passing a pointer to an 'int'.
Change type of timeout to 'unsigned long'.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
blockd.c