Re: [PATCH] scsi: bfa: Replace kzalloc + copy_from_user with memdup_user
From: Martin K. Petersen
Date: Mon Sep 29 2025 - 16:49:13 EST
Hi Thorsten!
>>> No functional changes intended other than returning the more
>>> idiomatic error code -EFAULT.
>>
>> How can we be sure that this doesn't break existing applications?
>
> I guess we can't because the error code is returned to userspace as
> the result of a bsg_job? That wasn't immediately obvious to me.
Correct. And with little chance of having the associated management
utilities updated, it's best to leave things as they are.
--
Martin K. Petersen