1. 12 Sep, 2019 1 commit
  2. 10 Sep, 2019 1 commit
  3. 09 Sep, 2019 2 commits
  4. 06 Sep, 2019 1 commit
  5. 05 Sep, 2019 1 commit
    • Dan Carpenter's avatar
      drm/vmwgfx: Fix double free in vmw_recv_msg() · 08b0c891
      Dan Carpenter authored
      We recently added a kfree() after the end of the loop:
      
      	if (retries == RETRIES) {
      		kfree(reply);
      		return -EINVAL;
      	}
      
      There are two problems.  First the test is wrong and because retries
      equals RETRIES if we succeed on the last iteration through the loop.
      Second if we fail on the last iteration through the loop then the kfree
      is a double free.
      
      When you're reading this code, please note the break statement at the
      end of the while loop.  This patch changes the loop so that if it's not
      successful then "reply" is NULL and we can test for that afterward.
      
      Cc: <stable@vger.kernel.org>
      Fixes: 6b7c3b86
      
       ("drm/vmwgfx: fix memory leak when too many retries have occurred")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Reviewed-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      08b0c891
  6. 02 Sep, 2019 1 commit
  7. 30 Aug, 2019 4 commits
  8. 29 Aug, 2019 1 commit
  9. 28 Aug, 2019 1 commit
  10. 27 Aug, 2019 7 commits
  11. 26 Aug, 2019 3 commits
  12. 24 Aug, 2019 1 commit
  13. 23 Aug, 2019 9 commits
  14. 21 Aug, 2019 7 commits