| 0c17b1b7 | 28-Jun-2017 |
Vladimir Zapolskiy <vz@mleia.com> |
net: tftp: silence a subscript above array bounds compile time warning
For strncpy() select a minimal string length of destination and source strings, here DEFAULT_NAME_LEN is preferable to MAX_LEN.
net: tftp: silence a subscript above array bounds compile time warning
For strncpy() select a minimal string length of destination and source strings, here DEFAULT_NAME_LEN is preferable to MAX_LEN.
Due to the NUL-terminated contents of default_string the change is a noop, however it removes a compilation warning if SH2/3/4 platform specific strncpy() function is used:
In file included from include/linux/string.h:21:0, from include/common.h:28, from net/tftp.c:9:
net/tftp.c: In function 'tftp_start': arch/sh/include/asm/string.h:52:42: warning: array subscript is above array bounds [-Warray-bounds] : "0" (__dest), "1" (__src), "r" (__src+__n)
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| 26d40b0a | 25-Nov-2016 |
oliver@schinagl.nl <oliver@schinagl.nl> |
net: core: cosmetic: A MAC address is not limited to SROM
Currently, we print that the MAC from the SROM does not match. It can be many forms of ROM, so lets drop the S.
Signed-off-by: Olliver Schi
net: core: cosmetic: A MAC address is not limited to SROM
Currently, we print that the MAC from the SROM does not match. It can be many forms of ROM, so lets drop the S.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| 9f455bcb | 25-Nov-2016 |
oliver@schinagl.nl <oliver@schinagl.nl> |
net: cosmetic: Make the MAC address string less magical
In u-boot printf has been extended with the %pM formatter to allow printing of MAC addresses. However buffers that want to store a MAC address
net: cosmetic: Make the MAC address string less magical
In u-boot printf has been extended with the %pM formatter to allow printing of MAC addresses. However buffers that want to store a MAC address cannot safely get the size. Add a define for this case so the string of a MAC address can be reliably obtained.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| 11e8ec96 | 09-Sep-2016 |
Joe Hershberger <joe.hershberger@ni.com> |
Revert "net: nfs: Correct the reply data buffer size"
This reverts commit 6279b49e6c2fdaf8665355d1777bc90cd41fcf90.
This caused a bad data crc.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.c
Revert "net: nfs: Correct the reply data buffer size"
This reverts commit 6279b49e6c2fdaf8665355d1777bc90cd41fcf90.
This caused a bad data crc.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reported-by: Guillaume GARDET <guillaume.gardet@free.fr>
show more ...
|
| 1ff65d44 | 15-Aug-2016 |
Joe Hershberger <joe.hershberger@ni.com> |
net: nfs: Simplify rpc_add_credentials()
We use an empty hostname, so remove all the "processing" of the known-to-be-empty hostname and just write 0's where needed.
Signed-off-by: Joe Hershberger <
net: nfs: Simplify rpc_add_credentials()
We use an empty hostname, so remove all the "processing" of the known-to-be-empty hostname and just write 0's where needed.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| 998372b4 | 15-Aug-2016 |
Joe Hershberger <joe.hershberger@ni.com> |
net: nfs: Use the tx buffer to construct rpc msgs
Instead of always allocating a huge temporary buffer on the stack and then memcpy()ing the result into the transmit buffer, simply figure out where
net: nfs: Use the tx buffer to construct rpc msgs
Instead of always allocating a huge temporary buffer on the stack and then memcpy()ing the result into the transmit buffer, simply figure out where in the transmit buffer the bytes will belong and write them there directly as each message is built.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| d89ff2df | 15-Aug-2016 |
Joe Hershberger <joe.hershberger@ni.com> |
net: nfs: Move some prints to debug statements
Much of the information is verbose and derived directly from the environment. Only output in debug mode. This also saves about 300 bytes from the code
net: nfs: Move some prints to debug statements
Much of the information is verbose and derived directly from the environment. Only output in debug mode. This also saves about 300 bytes from the code size.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| 051ed9af | 15-Aug-2016 |
Joe Hershberger <joe.hershberger@ni.com> |
net: nfs: Consolidate handling of NFSv3 attributes
Instead of repeating the same large snippet for dealing with attributes it should be shared with a helper function.
Signed-off-by: Joe Hershberger
net: nfs: Consolidate handling of NFSv3 attributes
Instead of repeating the same large snippet for dealing with attributes it should be shared with a helper function.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|