20 Aug, 2018
1 commit
-
Fix the null dereferenced issues from converity scan results.
issue id:
3618300:Dereference after null check
3618364:Dereference after null check
3618463:Dereference after null check
3618470:Explicit null dereferenced
3618520:Dereference after null checkTest: issue fixed by converity scan.
Change-Id: I577ed094a1f9b493de61b84827c0e1157a4fbd2f
Signed-off-by: Luo Ji
27 Apr, 2018
1 commit
-
Add return value check
Coverity 392391
Signed-off-by: Peng Fan
(cherry picked from commit 3f8052264b97b0bf87452876307ca115b7a518a3)
28 Feb, 2018
1 commit
-
Enable networking command only when NET is enabled.
And remove selecting NET for CMD_NETSigned-off-by: Michal Simek
Signed-off-by: Tom Rini
24 Feb, 2018
1 commit
-
This converts the following to Kconfig:
CONFIG_BOOTP_BOOTPATH
CONFIG_BOOTP_DNS
CONFIG_BOOTP_GATEWAY
CONFIG_BOOTP_HOSTNAME
CONFIG_BOOTP_PXE
CONFIG_BOOTP_SUBNETMASK
CONFIG_CMDLINE_EDITING
CONFIG_AUTO_COMPLETE
CONFIG_SYS_LONGHELP
CONFIG_SUPPORT_RAW_INITRD
CONFIG_ENV_VARS_UBOOT_CONFIGSigned-off-by: Adam Ford
[trini: Re-run the migration]
Signed-off-by: Tom Rini
09 Feb, 2018
1 commit
-
config_fallbacks.h had some logic to automatically select
LIB_RAND if RANDOM_UUID or CMD_UUID were set if LIB_HW_RAND wasn't
already selected. By migrating LIB_HW_RAND to Kconfig, we can
remove this check from config_fallbacks.h and put it into KconfigSigned-off-by: Adam Ford
Reviewed-by: Lukasz Majewski
[trini: Turn into a choice, add NET_RANDOM_ETHADDR]
Signed-off-by: Tom Rini
16 Jan, 2018
2 commits
-
This change allows the "MAY_FAIL" DHCP option to still attempt to
contact a DHCP server on each adapter and only give up once each
adapter has failed once. To get the existing behavior, set the
already-existing ethrotate=no variable.Signed-off-by: Joe Hershberger
Cc: Keng Soon Cheah
Cc: Chen Yee Chew -
Nothing from this header is used there, so remove it.
Signed-off-by: Joe Hershberger
22 Sep, 2017
1 commit
-
Fixes:
net/tftp.c:811: undefined reference to `efi_set_bootdev'Signed-off-by: Jörg Krause
Reviewed-by: Bin Meng
08 Sep, 2017
1 commit
-
In the general case, CONFIG_NFS_READ_SIZE is unchanged from the default
of 1024. There are in fact no in-tree users that increase this size.
Adjust the comment to reflect what could be done in the future in
conjunction with CONFIG_IP_DEFRAG.Cc: Joe Hershberger
Signed-off-by: Tom Rini
Acked-by: Joe Hershberger
16 Aug, 2017
7 commits
-
We are now using an env_ prefix for environment functions. Rename these
other functions as well, for consistency:getenv_vlan()
getenv_bootm_size()
getenv_bootm_low()
getenv_bootm_mapsize()
env_get_default()Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass -
Rename this function for consistency with env_get().
Signed-off-by: Simon Glass
-
We are now using an env_ prefix for environment functions. Rename these
for consistency. Also add function comments in common.h.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass -
We are now using an env_ prefix for environment functions. Rename these
two functions for consistency. Also add function comments in common.h.Quite a few places use getenv() in a condition context, provoking a
warning from checkpatch. These are fixed up in this patch also.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass -
Rename this function for consistency with env_set().
Signed-off-by: Simon Glass
-
We are now using an env_ prefix for environment functions. Rename these
commonly used functions, for consistency. Also add function comments in
common.h.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass -
We are now using an env_ prefix for environment functions. Rename setenv()
for consistency. Also add function comments in common.h.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass
08 Aug, 2017
4 commits
-
PXE boot is broken with GCC 7.1 due option '-fstore-merging' enabled
by default for '-O2':BOOTP broadcast 1
data abort
pc : [] lr : []
reloc pc : [] lr : []
sp : 8f558bc0 ip : 00000000 fp : 8ffef5a4
r10: 8ffed248 r9 : 8f558ee0 r8 : 8ffef594
r7 : 0000000e r6 : 8ffed700 r5 : 00000000 r4 : 8ffed74e
r3 : 00060101 r2 : 8ffed230 r1 : 8ffed706 r0 : 00000ddd
Flags: nzcv IRQs off FIQs off Mode SVC_32
Resetting CPU ...Core reason is usage of structures for network headers without packed
attribute.Reviewed-by: Yauheni Kaliuta
Signed-off-by: Denis Pynkin
Acked-by: Joe Hershberger -
Add missing "defined" statement to fix the compile failures.
Signed-off-by: Holger Dengler
Acked-by: Joe Hershberger -
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
Acked-by: Joe Hershberger -
Previously seeded by obtaining mac addr from env. If mac addr was
never set, rand would output 0. This fix obtains the mac addr
from driver instead.Signed-off-by: Jimmy Du
Acked-by: Joe Hershberger
03 Jun, 2017
1 commit
-
Checking if dev is NULL after dereferencing it does not make sense.
Signed-off-by: Heinrich Schuchardt
Acked-by: Joe Hershberger
12 May, 2017
2 commits
-
We will see warnings such as:
net/eth_common.c:57:61: warning: data argument not used by format string [-Wformat-extra-args]
sprintf(enetvar, index ? "%s%daddr" : "%saddr", base_name, index);
~~~~~~~~ ^
With clang. In this case we do not want to re-write our code to be less
compact as the above is intentional and readable. Add a comment above
the disabling so that it's clear why we want that warning off.Signed-off-by: Tom Rini
-
The value of variable pkt is never used.
The problem was indicated by clang scan-build.
Signed-off-by: Heinrich Schuchardt
26 Mar, 2017
1 commit
-
The network mask must be stored in network order when in a
'struct in_addr'.This fix removes the "gatewayip needed but not set" message on the
console when using a link-local IP setup.Signed-off-by: Alexandre Messier
Signed-off-by: Sylvain Lemieux
Acked-by: Joe Hershberger
21 Mar, 2017
1 commit
-
If the ethernet address environment is set with a valid
ethernet address prevent overriding it as it is most likely
set by the user and he/she doesn't want board code to
automatically override it whatsoever.Signed-off-by: Roger Quadros
Reviewed-by: Tom Rini
08 Feb, 2017
3 commits
-
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
Acked-by: Joe Hershberger -
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
Acked-by: Joe Hershberger -
Commit 674bb249825a ("net: cosmetic: Replace magic numbers in arp.c with
constants") introduced a nice define to replace the magic value 6 for
the ethernet hardware address. Replace more hardcoded instances of 6
which really reference the ARP_HLEN (iow the MAC/Hardware/Ethernet
address).Signed-off-by: Olliver Schinagl
Acked-by: Joe Hershberger
22 Jan, 2017
1 commit
-
Move all of the status LED feature to drivers/led/Kconfig.
The LED status definitions were moved from the board configuration
files to the defconfig files.TBD: Move all of the definitions in the include/status_led.h to the
relevant board's defconfig files.Tested boards: CL-SOM-AM57x, CM-T335
Signed-off-by: Uri Mashiach
14 Nov, 2016
1 commit
-
If mac-address is changed using "setenv ethaddr ...." command the new
mac-adress also must be written into the responsible ethernet driver.
This fixes the legacy ethernet handling.Signed-off-by: Marek Vasut
Cc: Hannes Schmelzer
Cc: Joe Hershberger
Cc: Tom Rini
Reviewed-by: Hannes Schmelzer
08 Nov, 2016
1 commit
-
Use random ethernet address if the ethernet address found
is invalid, not zero and config for random address
is defined.Signed-off-by: Siva Durga Prasad Paladugu
Signed-off-by: Michal Simek
Acked-by: Joe Hershberger
14 Oct, 2016
1 commit
-
If mac-address is changed using "setenv ethaddr ...." command the new
mac-adress also must be written into the responsible ethernet driver.Signed-off-by: Hannes Schmelzer
Acked-by: Joe Hershberger
24 Sep, 2016
1 commit
-
Now, arch/${ARCH}/include/asm/errno.h and include/linux/errno.h have
the same content. (both just wrap )Replace all include directives for with .
Signed-off-by: Masahiro Yamada
[trini: Fixup include/clk.]
Signed-off-by: Tom Rini
17 Sep, 2016
1 commit
-
There are a lot of SPL options in U-Boot to enable various features and
drivers. Currently these do not use Kconfig. Add them to Kconfig along
with suitable help, and drop them from the README.Signed-off-by: Simon Glass
10 Sep, 2016
2 commits
-
This reverts commit 6279b49e6c2fdaf8665355d1777bc90cd41fcf90.
This caused a bad data crc.
Signed-off-by: Joe Hershberger
Reported-by: Guillaume GARDET -
This reverts commit 998372b4798fd7ebb666f571950df925b8d80f69.
This caused a data abort on some platform.
Signed-off-by: Joe Hershberger
Reported-by: Guillaume GARDET
23 Aug, 2016
4 commits
-
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
-
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
-
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
-
Use the same name throughout the nfs code and use the same member of the
union to avoid casts.Signed-off-by: Joe Hershberger