util/ectool: Fix EC_CMD_USB_PD_DISCOVERY result
BRANCH=none
TEST='make BOARD=host utils-host' passes
Code-Coverage: Zoss
@@ -2670,8 +2670,8 @@ int cmd_pd_device_info(int argc, char *argv[])
p->port = port;
r1 = (struct ec_params_usb_pd_discovery_entry *)ec_inbuf;
- rv = ec_command(EC_CMD_USB_PD_DISCOVERY, 0, p, sizeof(*p), ec_inbuf,
- ec_max_insize);
+ rv = ec_command(EC_CMD_USB_PD_DISCOVERY, 0, p, sizeof(*p), r1,
+ sizeof(*r1));
if (rv < 0)
return rv;
