Skip to content
  1. Aug 21, 2018
  2. Aug 02, 2018
    • Anton Vasilyev's avatar
      HID: intel_ish-hid: tx_buf memory leak on probe/remove · 50fa9259
      Anton Vasilyev authored
      
      
      ish_dev_init() allocates 512*176 bytes memory for tx_buf and stores it at
      &dev->wr_free_list_head.link list on ish_probe().
      But there is no deallocation of this memory in ish_remove() and in
      ish_probe() error path.
      So current intel-ish-ipc provides 88 KB memory leak for each
      probe/release.
      
      The patch replaces kzalloc allocation by devm_kzalloc and removes
      ishtp_device *dev deallocation by kfree.
      
      Found by Linux Driver Verification project (linuxtesting.org).
      
      Signed-off-by: default avatarAnton Vasilyev <vasilyev@ispras.ru>
      Acked-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      50fa9259
    • Srinivas Pandruvada's avatar
      HID: intel-ish-hid: Prevent loading of driver on Mehlow · a1e9a9c0
      Srinivas Pandruvada authored
      
      
      On Mehlow Xeon-E workstation, ISH PCI device is enabled but without ISH
      firmware. Here the ISH device PCI device id was reused for some non Linux
      storage drivers. So this was not done for enabling ISH. But this has a
      undesirable side effect for Linux.
      
      Here the ISH driver will be loaded via PCI enumeration and will try to do
      reset sequence. But reset sequence will wait till timeout as there is no
      real ISH firmware is present to take action. This delay will add to boot
      time of Linux (This platform will still continue to boot after this
      timeout).
      
      To avoid this boot delay we need to prevent loading of ISH drivers on
      this platform. So we need to have hack to avoid treating this device as
      ISH on this platform. To identify this workstation, we need some runtime
      method. Luckily there are special PCI id on this workstation to
      distinguish from the client version of this platform. On client version,
      the ISH is supported using same PCI device id. So this change look for
      the presence of PCI device IDs A309 and A30A and exit.
      
      Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      a1e9a9c0
  3. Jul 23, 2018
  4. Jul 17, 2018
  5. Jul 10, 2018
  6. Jul 09, 2018