On Thu, Mar 29, 2018 at 08:21:54PM +0800, Peng Fan wrote: > So add check here. When the driver pointer is NULL, return -EIO.
We should be providing a name if the file is there so rather than returning an error we should provide something in the file so we should either suppress creation of the file or provide a default string (the latter is obviously easier and closer to what you have here).
signature.asc
Description: PGP signature

