Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 153870aa authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: Avoid writing null to Boot LUN enable attribute"

parents 6cc7a1b3 e700f3f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9210,7 +9210,7 @@ static int ufshcd_query_ioctl(struct ufs_hba *hba, u8 lun, void __user *buffer)
		switch (ioctl_data->idn) {
		case QUERY_ATTR_IDN_BOOT_LU_EN:
			index = 0;
			if (att > QUERY_ATTR_IDN_BOOT_LU_EN_MAX) {
			if (!att || att > QUERY_ATTR_IDN_BOOT_LU_EN_MAX) {
				dev_err(hba->dev,
					"%s: Illegal ufs query ioctl data, opcode 0x%x, idn 0x%x, att 0x%x\n",
					__func__, ioctl_data->opcode,