loop: remove unnecessary verbose check

The verbose flag is responsible for dereferencing of addresses, and it
is perfectly handled by umove_or_printaddr; moreover, this early exit
leads to incorrect formatting of last argument.

* loop.c (loop_ioctl): Do not check verbose flag explicitly and do not
exit early if it is not set.
This commit is contained in:
Eugene Syromyatnikov 2017-01-01 22:40:34 +03:00 committed by Dmitry V. Levin
parent 0fbbe358ee
commit 297f570c2d

3
loop.c
View File

@ -160,9 +160,6 @@ MPERS_PRINTER_DECL(int, loop_ioctl,
struct tcb *tcp, const unsigned int code,
const kernel_ulong_t arg)
{
if (!verbose(tcp))
return RVAL_DECODED;
switch (code) {
case LOOP_GET_STATUS:
if (entering(tcp))