linux-gbmc: peci: Systemic fixes for UAF and memory corruption Consolidates the following fixes into a single patch: - peci: core: Check xfer and refcount in peci_command - peci: core: Relocate IDR removal to release callback - peci: npcm: Fix use-after-free and ordering in teardown - peci: dev: Fix use-after-free on adapter detach - peci: core: Fix sysfs new_device race condition Tested: Survived 60x unbind/bind iterations on a machine. Fusion-Link: https://fusion2.corp.google.com/d7994c55-f939-35a7-b32f-0c54d54e61dc (platform11) Fusion-Link: https://fusion2.corp.google.com/165543ab-bc9b-3723-b4f2-9ceeded9c6b8 (platform11-emr) Fusion-Link: https://fusion2.corp.google.com/cc558fb5-4d87-3874-bad0-3b11c1c29715 (platform15) Fusion-Link: https://fusion2.corp.google.com/58873016-06b4-3059-bd4f-91b1875591de (platform17) Fusion-Link: https://fusion2.corp.google.com/61cccd02-779d-3b8a-9910-551ab3a2122b (platform5) Google-Bug-Id: 498991349 Change-Id: I9fe6305b83730cb7f33aa1aa1f5b2396268e375e Signed-off-by: William A. Kennington III <wak@google.com>