On 10/12/18 15:28, Biju Das wrote:
+       /* Stop the user from writing */
+       if (offset >= nvmem->size)
+               return -ENOSPC;
+
This should be "return -EFBIG" to make utilities like dd or sh happy.

Look at 38b0774c0598c ("nvmem: core: return EFBIG on out-of-range write") for more info.

other than that, patch looks fine to me!

--srini



Reply via email to