)]}' { "commit": "1f802a3b86fa54afdb2e58dd9da38f988afd923a", "tree": "6d6516bfa6188f8daab6121dfcce9d85363025e2", "parents": [ "45124fbe763cf779374ea0a954d1051bbf43a327" ], "author": { "name": "Sergio Aguirre", "email": "sergio.a.aguirre.rodriguez@intel.com", "time": "Thu Apr 04 10:32:13 2013 -0700" }, "committer": { "name": "Matthias Kaehlcke", "email": "mka@google.com", "time": "Wed Jun 03 14:15:04 2015 -0700" }, "message": "xhci-mem: init list heads at the beginning of init\n\ncommit 331de00a64e5027365145bdf51da27b9ce15dfd5 upstream.\n\nIt is possible that we fail on xhci_mem_init, just before doing\nthe INIT_LIST_HEAD, and calling xhci_mem_cleanup.\n\nProblem is that, the list_for_each_entry_safe macro, assumes\nlist heads are initialized (not NULL), and dereferences their \u0027next\u0027\npointer, causing a kernel panic if this is not yet initialized.\n\nLet\u0027s protect from that by moving inits to the beginning.\n\nThis patch should be backported to kernels as old as 3.2, that\ncontain the commit 9574323c39d1f8359a04843075d89c9f32d8b7e6 \"xHCI: test\nUSB2 software LPM\".\n\nChange-Id: I1a4b6cc78289b31aedd24ac0c25fe2175cc7a51e\nSigned-off-by: Sergio Aguirre \u003csergio.a.aguirre.rodriguez@intel.com\u003e\nAcked-by: David Cohen \u003cdavid.a.cohen@intel.com\u003e\nSigned-off-by: Sarah Sharp \u003csarah.a.sharp@linux.intel.com\u003e\n[bwh: Backported to 3.2: adjust context]\nSigned-off-by: Ben Hutchings \u003cben@decadent.org.uk\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "0db52f0993fbb52dc6347ddd28fe0c5cb5b52f97", "old_mode": 33188, "old_path": "drivers/usb/host/xhci-mem.c", "new_id": "3bec4d21b5701f6d7d62d5cf6d5bce93fad566e6", "new_mode": 33188, "new_path": "drivers/usb/host/xhci-mem.c" } ] }