Re: [PATCH] drivers: scsi: megaraid: Add missing check for dma_set_mask

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> pdev->dev cannot perform DMA properly if dma_set_mask() returns non-zero.

Can a wording approach (like the following) become a part of a better change description?

  Direct memory access can not be properly performed any more
  after a dma_set_mask() call failed.


> Add check for dma_set_mask()

How do you think about to avoid a repeated reference to a function name?


>                                  return the error if it fails.

How can this happen after you did not store the return value (in the local variable “error”)
for further usage (according to your proposed source code adjustment)?


…
> Signed-off-by: Haoxiang Li <make24@xxxxxxxxxxx>

I find it interesting that another personal name is presented here.
I noticed that some patches were published with the name “Ma Ke” previously.
How will requirements be resolved for the Developer's Certificate of Origin?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.10-rc6#n398


How do you think about to use a summary phrase like “Complete error handling
in megaraid_probe_one()”?

Regards,
Markus





[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux