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 check

    Test: issue fixed by converity scan.

    Change-Id: I577ed094a1f9b493de61b84827c0e1157a4fbd2f
    Signed-off-by: Luo Ji

    Luo Ji
     

27 Apr, 2018

1 commit


28 Feb, 2018

1 commit


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_CONFIG

    Signed-off-by: Adam Ford
    [trini: Re-run the migration]
    Signed-off-by: Tom Rini

    Adam Ford
     

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 Kconfig

    Signed-off-by: Adam Ford
    Reviewed-by: Lukasz Majewski
    [trini: Turn into a choice, add NET_RANDOM_ETHADDR]
    Signed-off-by: Tom Rini

    Adam Ford
     

16 Jan, 2018

2 commits


22 Sep, 2017

1 commit


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

    Tom Rini
     

16 Aug, 2017

7 commits


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

    Denis Pynkin
     
  • Add missing "defined" statement to fix the compile failures.

    Signed-off-by: Holger Dengler
    Acked-by: Joe Hershberger

    Holger Dengler
     
  • 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

    Vladimir Zapolskiy
     
  • 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

    Jimmy Du
     

03 Jun, 2017

1 commit


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

    Tom Rini
     
  • The value of variable pkt is never used.

    The problem was indicated by clang scan-build.

    Signed-off-by: Heinrich Schuchardt

    xypron.glpk@gmx.de
     

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

    Alexandre Messier
     

21 Mar, 2017

1 commit


08 Feb, 2017

3 commits


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

    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

    Marek Vasut
     

08 Nov, 2016

1 commit


14 Oct, 2016

1 commit


24 Sep, 2016

1 commit


17 Sep, 2016

1 commit


10 Sep, 2016

2 commits


23 Aug, 2016

4 commits