1. 03 Sep, 2019 32 commits
  2. 31 Aug, 2019 3 commits
    • Wenwen Wang's avatar
      hwmon (coretemp) Fix a memory leak bug · e027a2de
      Wenwen Wang authored
      In coretemp_init(), 'zone_devices' is allocated through kcalloc().
      However, it is not deallocated in the following execution if
      platform_driver_register() fails, leading to a memory leak. To fix this
      issue, introduce the 'outzone' label to free 'zone_devices' before
      returning the error.
      Signed-off-by: default avatarWenwen Wang <wenwen@cs.uga.edu>
      Link: https://lore.kernel.org/r/1566248402-6538-1-git-send-email-wenwen@cs.uga.eduSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      e027a2de
    • Guenter Roeck's avatar
      hwmon: (lm75) Fix write operations for negative temperatures · 7d82fcc9
      Guenter Roeck authored
      Writes into limit registers fail if the temperature written is negative.
      The regmap write operation checks the value range, regmap_write accepts
      an unsigned int as parameter, and the temperature value passed to
      regmap_write is kept in a variable declared as long. Negative values
      are converted large unsigned integers, which fails the range check.
      Fix by type casting the temperature to u16 when calling regmap_write().
      
      Cc: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
      Fixes: e65365fe ("hwmon: (lm75) Convert to use regmap")
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      7d82fcc9
    • Bartosz Golaszewski's avatar
      hwmon: pmbus: ucd9000: remove unneeded include · 6f8c8f3c
      Bartosz Golaszewski authored
      Build bot reports the following build issue after commit 9091373a
      ("gpio: remove less important #ifdef around declarations):
      
         In file included from drivers/hwmon/pmbus/ucd9000.c:19:0:
      >> include/linux/gpio/driver.h:576:1: error: redefinition of 'gpiochip_add_pin_range'
          gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name,
          ^~~~~~~~~~~~~~~~~~~~~~
         In file included from drivers/hwmon/pmbus/ucd9000.c:18:0:
         include/linux/gpio.h:245:1: note: previous definition of 'gpiochip_add_pin_range' was here
          gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name,
          ^~~~~~~~~~~~~~~~~~~~~~
         In file included from drivers/hwmon/pmbus/ucd9000.c:19:0:
      >> include/linux/gpio/driver.h:583:1: error: redefinition of 'gpiochip_add_pingroup_range'
          gpiochip_add_pingroup_range(struct gpio_chip *chip,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         In file included from drivers/hwmon/pmbus/ucd9000.c:18:0:
         include/linux/gpio.h:254:1: note: previous definition of 'gpiochip_add_pingroup_range' was here
          gpiochip_add_pingroup_range(struct gpio_chip *chip,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         In file included from drivers/hwmon/pmbus/ucd9000.c:19:0:
      >> include/linux/gpio/driver.h:591:1: error: redefinition of 'gpiochip_remove_pin_ranges'
          gpiochip_remove_pin_ranges(struct gpio_chip *chip)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
         In file included from drivers/hwmon/pmbus/ucd9000.c:18:0:
         include/linux/gpio.h:263:1: note: previous definition of 'gpiochip_remove_pin_ranges' was here
          gpiochip_remove_pin_ranges(struct gpio_chip *chip)
      
      This is caused by conflicting defines from linux/gpio.h and
      linux/gpio/driver.h. Drivers should not include both the legacy and
      the new API headers. This driver doesn't even use linux/gpio.h so
      remove it.
      Reported-by: default avatarkbuild test robot <lkp@intel.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
      Link: https://lore.kernel.org/r/20190808080144.6183-1-brgl@bgdev.plSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      6f8c8f3c
  3. 25 Aug, 2019 5 commits
    • Linus Torvalds's avatar
      Linux 5.3-rc6 · a55aa89a
      Linus Torvalds authored
      a55aa89a
    • Linus Torvalds's avatar
      Merge tag 'auxdisplay-for-linus-v5.3-rc7' of git://github.com/ojeda/linux · c749088f
      Linus Torvalds authored
      Pull auxdisplay cleanup from Miguel Ojeda:
       "Make ht16k33_fb_fix and ht16k33_fb_var constant (Nishka Dasgupta)"
      
      * tag 'auxdisplay-for-linus-v5.3-rc7' of git://github.com/ojeda/linux:
        auxdisplay: ht16k33: Make ht16k33_fb_fix and ht16k33_fb_var constant
      c749088f
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml · 32ae83ff
      Linus Torvalds authored
      Pull UML fix from Richard Weinberger:
       "Fix time travel mode"
      
      * tag 'for-linus-5.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
        um: fix time travel mode
      32ae83ff
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs · 94a76d9b
      Linus Torvalds authored
      Pull UBIFS and JFFS2 fixes from Richard Weinberger:
       "UBIFS:
         - Don't block too long in writeback_inodes_sb()
         - Fix for a possible overrun of the log head
         - Fix double unlock in orphan_delete()
      
        JFFS2:
         - Remove C++ style from UAPI header and unbreak picky toolchains"
      
      * tag 'for-linus-5.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs:
        ubifs: Limit the number of pages in shrink_liability
        ubifs: Correctly initialize c->min_log_bytes
        ubifs: Fix double unlock around orphan_delete()
        jffs2: Remove C++ style comments from uapi header
      94a76d9b
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 146c3d32
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "A few fixes for x86:
      
         - Fix a boot regression caused by the recent bootparam sanitizing
           change, which escaped the attention of all people who reviewed that
           code.
      
         - Address a boot problem on machines with broken E820 tables caused
           by an underflow which ended up placing the trampoline start at
           physical address 0.
      
         - Handle machines which do not advertise a legacy timer of any form,
           but need calibration of the local APIC timer gracefully by making
           the calibration routine independent from the tick interrupt. Marked
           for stable as well as there seems to be quite some new laptops
           rolled out which expose this.
      
         - Clear the RDRAND CPUID bit on AMD family 15h and 16h CPUs which are
           affected by broken firmware which does not initialize RDRAND
           correctly after resume. Add a command line parameter to override
           this for machine which either do not use suspend/resume or have a
           fixed BIOS. Unfortunately there is no way to detect this on boot,
           so the only safe decision is to turn it off by default.
      
         - Prevent RFLAGS from being clobbers in CALL_NOSPEC on 32bit which
           caused fast KVM instruction emulation to break.
      
         - Explain the Intel CPU model naming convention so that the repeating
           discussions come to an end"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/retpoline: Don't clobber RFLAGS during CALL_NOSPEC on i386
        x86/boot: Fix boot regression caused by bootparam sanitizing
        x86/CPU/AMD: Clear RDRAND CPUID bit on AMD family 15h/16h
        x86/boot/compressed/64: Fix boot on machines with broken E820 table
        x86/apic: Handle missing global clockevent gracefully
        x86/cpu: Explain Intel model naming convention
      146c3d32