From: Avri Altman Date: Tue, 21 May 2019 08:24:22 +0000 (+0300) Subject: scsi: ufs: Check that space was properly alloced in copy_query_response X-Git-Tag: v5.2-rc4~10^2~1 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=1c90836f70f9a8ef7b7ad9e1fdd8961903e6ced6;hp=1c90836f70f9a8ef7b7ad9e1fdd8961903e6ced6;p=linux.git scsi: ufs: Check that space was properly alloced in copy_query_response struct ufs_dev_cmd is the main container that supports device management commands. In the case of a read descriptor request, we assume that the proper space was allocated in dev_cmd to hold the returning descriptor. This is no longer true, as there are flows that doesn't use dev_cmd for device management requests, and was wrong in the first place. Fixes: d44a5f98bb49 (ufs: query descriptor API) Signed-off-by: Avri Altman Reviewed-by: Alim Akhtar Acked-by: Bean Huo Signed-off-by: Martin K. Petersen ---