udebug: fix file descriptor initialization for __udebug_buf_map
authorFelix Fietkau <nbd@nbd.name>
Mon, 4 Dec 2023 13:37:31 +0000 (14:37 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 4 Dec 2023 13:37:33 +0000 (14:37 +0100)
commitca3f6d0cdb1e588283c42d039779ceab303ceef2
treeacf45bd01110e914a3e5b5432780df73d7ad4b67
parentdf5b7147f47ae3bca23bde18f3d432f5ce26a2ff
udebug: fix file descriptor initialization for __udebug_buf_map

Pass the fd to __udebug_buf_map, set buf->fd only if mapping worked

Signed-off-by: Felix Fietkau <nbd@nbd.name>
udebug.c