From e68e2a84b0f640a8f8f45ba6e59968e978d2f3e0 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 21 Dec 2016 00:37:57 +0000 Subject: [PATCH] scsi: use umove_or_printaddr * scsi.c (scsi_ioctl): Use umove_or_printaddr. --- scsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scsi.c b/scsi.c index b3c62453..f399b5c0 100644 --- a/scsi.c +++ b/scsi.c @@ -263,8 +263,7 @@ scsi_ioctl(struct tcb *tcp, const unsigned int code, const long arg) if (entering(tcp)) { tprints(", "); - if (!arg || umove(tcp, arg, &iid) < 0) { - printaddr(arg); + if (umove_or_printaddr(tcp, arg, &iid)) { return RVAL_DECODED | 1; } else { return print_sg_io_req(tcp, iid, arg); -- 2.50.1