From 9885c967a4f77576c9b37af6b8605ab74a30447b Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Sun, 27 Aug 2017 00:24:37 +0200 Subject: [PATCH] dm: return RVAL_DECODED instead of 0 if we can't decode command Return RVAL_DECODED if we can't decode command in order to avoid being called on exiting. * dm.c (dm_ioctl): Return RVAL_DECODED instead of 0 if command can't be decoded. --- dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dm.c b/dm.c index bf122d94..327a5e1a 100644 --- a/dm.c +++ b/dm.c @@ -578,7 +578,7 @@ dm_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ulong_t ar case DM_DEV_SET_GEOMETRY: return dm_known_ioctl(tcp, code, arg); default: - return 0; + return RVAL_DECODED; } } @@ -587,7 +587,7 @@ dm_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ulong_t ar int dm_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ulong_t arg) { - return 0; + return RVAL_DECODED; } # endif /* DM_VERSION_MAJOR == 4 */ -- 2.40.0