scsi: ufs: Fix IOCTL error checking for input buffer
The check for user buffer != NULL in ufshcd_ioctl() should
only be done at a point when we know we have a valid IOCTL
command. Move this check inside the UFS_IOCTL_QUERY
handling code.
Change-Id: I10e86b30ae1fdd8c9230db476bb593ccfa94b55c
Signed-off-by:
Anjana <ahari@codeaurora.org>
Loading
Please register or sign in to comment