The first command issued from the host to the target is the fabricsReviewed-by: Hannes Reinecke <hare@xxxxxxx>
connect command. At this point, neither the target queue nor the
controller have been allocated. But we already try to trace this command
in nvmet_req_init.
Reported by KASAN.
Signed-off-by: Daniel Wagner <dwagner@xxxxxxx>
---
drivers/nvme/target/trace.c | 6 +++---
drivers/nvme/target/trace.h | 24 +++++++++++++-----------
2 files changed, 16 insertions(+), 14 deletions(-)