mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-29 18:00:18 +00:00
iscsi-scst: cleanup
There's no need to end-align the padding. Plus, it's not optimal to access front misaligned memory Reported-by: David Butterfield <dab21774@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7195 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1695,7 +1695,7 @@ static int tx_padding(struct iscsi_cmnd *cmnd, int state)
|
||||
|
||||
TRACE_DBG("Sending %d padding bytes (cmd %p)", rest, cmnd);
|
||||
|
||||
iov.iov_base = (char *)(&padding) + (sizeof(uint32_t) - rest);
|
||||
iov.iov_base = (char *)&padding;
|
||||
iov.iov_len = rest;
|
||||
|
||||
res = kernel_sendmsg(cmnd->conn->sock, &msg, &iov, 1, rest);
|
||||
|
||||
Reference in New Issue
Block a user