Skip to content

Commit 71baec7

Browse files
Davidlohr Buesodjbw
authored andcommitted
cxl/pci: Use correct flag for sanitize polling
This is a bogus value, left behind from a previous version. Fixes: 0c36b6a ("cxl/mbox: Add sanitization handling machinery") Signed-off-by: Davidlohr Bueso <dave@stgolabs.net> Link: https://lore.kernel.org/r/7q3vcjqidtmxmys4n34g6b3mygvhaen7yikzxanpz56lw43fz7@7subbtbfkmyx Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent 0c0df63 commit 71baec7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/cxl/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ static int __cxl_pci_mbox_send_cmd(struct cxl_memdev_state *mds,
295295
* and allow userspace to poll(2) for completion.
296296
*/
297297
if (mbox_cmd->opcode == CXL_MBOX_OP_SANITIZE) {
298-
if (mds->security.poll_tmo_secs != -1) {
298+
if (mds->security.poll) {
299299
/* hold the device throughout */
300300
get_device(cxlds->dev);
301301

0 commit comments

Comments
 (0)