Skip to content

Commit 2565779

Browse files
committed
Merge tag 'nvme-6.0-2022-09-01' of git://git.infradead.org/nvme into block-6.0
Pull NVMe fixes from Christoph: "nvme fixes for Linux 6.0 - error handling fix for the new auth code (Hannes Reinecke) - fix unhandled tcp states in nvmet_tcp_state_change (Maurizio Lombardi) - add NVME_QUIRK_BOGUS_NID for Lexar NM610 (Shyamin Ayesh)" * tag 'nvme-6.0-2022-09-01' of git://git.infradead.org/nvme: nvmet-tcp: fix unhandled tcp states in nvmet_tcp_state_change() nvmet-auth: add missing goto in nvmet_setup_auth() nvme-pci: add NVME_QUIRK_BOGUS_NID for Lexar NM610
2 parents 645b5ed + 478814a commit 2565779

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

drivers/nvme/host/pci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3522,6 +3522,8 @@ static const struct pci_device_id nvme_id_table[] = {
35223522
.driver_data = NVME_QUIRK_NO_DEEPEST_PS, },
35233523
{ PCI_DEVICE(0xc0a9, 0x540a), /* Crucial P2 */
35243524
.driver_data = NVME_QUIRK_BOGUS_NID, },
3525+
{ PCI_DEVICE(0x1d97, 0x2263), /* Lexar NM610 */
3526+
.driver_data = NVME_QUIRK_BOGUS_NID, },
35253527
{ PCI_DEVICE(PCI_VENDOR_ID_AMAZON, 0x0061),
35263528
.driver_data = NVME_QUIRK_DMA_ADDRESS_BITS_48, },
35273529
{ PCI_DEVICE(PCI_VENDOR_ID_AMAZON, 0x0065),

drivers/nvme/target/auth.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ int nvmet_setup_auth(struct nvmet_ctrl *ctrl)
196196
if (IS_ERR(ctrl->ctrl_key)) {
197197
ret = PTR_ERR(ctrl->ctrl_key);
198198
ctrl->ctrl_key = NULL;
199+
goto out_free_hash;
199200
}
200201
pr_debug("%s: using ctrl hash %s key %*ph\n", __func__,
201202
ctrl->ctrl_key->hash > 0 ?

drivers/nvme/target/tcp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,9 @@ static void nvmet_tcp_state_change(struct sock *sk)
15061506
goto done;
15071507

15081508
switch (sk->sk_state) {
1509+
case TCP_FIN_WAIT2:
1510+
case TCP_LAST_ACK:
1511+
break;
15091512
case TCP_FIN_WAIT1:
15101513
case TCP_CLOSE_WAIT:
15111514
case TCP_CLOSE:

0 commit comments

Comments
 (0)