From: Eugene Syromyatnikov Date: Sat, 26 Aug 2017 22:24:37 +0000 (+0200) Subject: dm: return RVAL_DECODED instead of 0 if we can't decode command X-Git-Tag: v4.19~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9885c967a4f77576c9b37af6b8605ab74a30447b;p=strace 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. --- 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 */