Commit 71baec7b authored by Davidlohr Bueso's avatar Davidlohr Bueso Committed by Dan Williams

cxl/pci: Use correct flag for sanitize polling

This is a bogus value, left behind from a previous version.

Fixes: 0c36b6ad ("cxl/mbox: Add sanitization handling machinery")
Signed-off-by: default avatarDavidlohr Bueso <dave@stgolabs.net>
Link: https://lore.kernel.org/r/7q3vcjqidtmxmys4n34g6b3mygvhaen7yikzxanpz56lw43fz7@7subbtbfkmyxSigned-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 0c0df631
......@@ -295,7 +295,7 @@ static int __cxl_pci_mbox_send_cmd(struct cxl_memdev_state *mds,
* and allow userspace to poll(2) for completion.
*/
if (mbox_cmd->opcode == CXL_MBOX_OP_SANITIZE) {
if (mds->security.poll_tmo_secs != -1) {
if (mds->security.poll) {
/* hold the device throughout */
get_device(cxlds->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment