Skip to content
Snippets Groups Projects
  1. Dec 10, 2016
  2. Dec 09, 2016
  3. Dec 08, 2016
  4. Dec 07, 2016
  5. Dec 06, 2016
  6. Dec 05, 2016
    • Florian Fainelli's avatar
      net: ep93xx_eth: Do not crash unloading module · c823abac
      Florian Fainelli authored
      
      When we unload the ep93xx_eth, whether we have opened the network
      interface or not, we will either hit a kernel paging request error, or a
      simple NULL pointer de-reference because:
      
      - if ep93xx_open has been called, we have created a valid DMA mapping
        for ep->descs, when we call ep93xx_stop, we also call
        ep93xx_free_buffers, ep->descs now has a stale value
      
      - if ep93xx_open has not been called, we have a NULL pointer for
        ep->descs, so performing any operation against that address just won't
        work
      
      Fix this by adding a NULL pointer check for ep->descs which means that
      ep93xx_free_buffers() was able to successfully tear down the descriptors
      and free the DMA cookie as well.
      
      Fixes: 1d22e05d ("[PATCH] Cirrus Logic ep93xx ethernet driver")
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c823abac
    • David S. Miller's avatar
      Merge branch 'bnx2x-fixes' · 34e0f2c2
      David S. Miller authored
      
      Yuval Mintz says:
      
      ====================
      bnx2x: fixes series
      
      Two unrelated fixes for bnx2x - the first one is nice-to-have,
      while the other fixes fatal behaviour in older adapters.
      
      Please consider applying them to `net'.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      34e0f2c2
Loading