aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/mtip32xx/mtip32xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c
index e6519e2c9934..f946d31d6917 100644
--- a/drivers/block/mtip32xx/mtip32xx.c
+++ b/drivers/block/mtip32xx/mtip32xx.c
@@ -1904,7 +1904,7 @@ static int exec_drive_command(struct mtip_port *port, u8 *command,
1904 int rv = 0, xfer_sz = command[3]; 1904 int rv = 0, xfer_sz = command[3];
1905 1905
1906 if (xfer_sz) { 1906 if (xfer_sz) {
1907 if (user_buffer) 1907 if (!user_buffer)
1908 return -EFAULT; 1908 return -EFAULT;
1909 1909
1910 buf = dmam_alloc_coherent(&port->dd->pdev->dev, 1910 buf = dmam_alloc_coherent(&port->dd->pdev->dev,