Skip to content

Commit 7e6d3e5

Browse files
Dennis Dalessandrorolandd
Dennis Dalessandro
authored andcommitted
IB/ipath: Translate legacy diagpkt into newer extended diagpkt
This patch addresses an issue where the legacy diagpacket is sent in from the user, but the driver operates on only the extended diagpkt. This patch specifically initializes the extended diagpkt based on the legacy packet. Cc: <[email protected]> Reported-by: Rickard Strandqvist <[email protected]> Reviewed-by: Mike Marciniszyn <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
1 parent 911eccd commit 7e6d3e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/infiniband/hw/ipath/ipath_diag.c

+4
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ static ssize_t ipath_diagpkt_write(struct file *fp,
346346
ret = -EFAULT;
347347
goto bail;
348348
}
349+
dp.len = odp.len;
350+
dp.unit = odp.unit;
351+
dp.data = odp.data;
352+
dp.pbc_wd = 0;
349353
} else {
350354
ret = -EINVAL;
351355
goto bail;

0 commit comments

Comments
 (0)