fabrics.c (3b3387620780fc9699021c85bdce5cb45a763d41) fabrics.c (c5017e85705bfea721732e153305d1988ff965c2)
1/*
2 * NVMe over Fabrics common host code.
3 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 873 unchanged lines hidden (view full) ---

882 goto out_unlock;
883 }
884
885 if (strcmp(ctrl->subnqn, opts->subsysnqn)) {
886 dev_warn(ctrl->device,
887 "controller returned incorrect NQN: \"%s\".\n",
888 ctrl->subnqn);
889 up_read(&nvmf_transports_rwsem);
1/*
2 * NVMe over Fabrics common host code.
3 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 873 unchanged lines hidden (view full) ---

882 goto out_unlock;
883 }
884
885 if (strcmp(ctrl->subnqn, opts->subsysnqn)) {
886 dev_warn(ctrl->device,
887 "controller returned incorrect NQN: \"%s\".\n",
888 ctrl->subnqn);
889 up_read(&nvmf_transports_rwsem);
890 ctrl->ops->delete_ctrl(ctrl);
890 nvme_delete_ctrl_sync(ctrl);
891 return ERR_PTR(-EINVAL);
892 }
893
894 up_read(&nvmf_transports_rwsem);
895 return ctrl;
896
897out_unlock:
898 up_read(&nvmf_transports_rwsem);

--- 155 unchanged lines hidden ---
891 return ERR_PTR(-EINVAL);
892 }
893
894 up_read(&nvmf_transports_rwsem);
895 return ctrl;
896
897out_unlock:
898 up_read(&nvmf_transports_rwsem);

--- 155 unchanged lines hidden ---