commit | 48b4c010c85bbd319fbcae79b2d602857a2e9345 | [log] [tgz] |
---|---|---|
author | Noam Gottlieb <ngottlieb@nvidia.com> | Mon Mar 15 14:56:11 2021 +0000 |
committer | Christoph Hellwig <hch@lst.de> | Fri Apr 02 18:48:27 2021 +0200 |
tree | ae315b9b172357e5665c8184a145a11be6129195 | |
parent | de5878048e11f1ec44164ebb8994de132074367a [diff] |
nvmet: do not allow model_number exceed 40 bytes According to the NVM specifications, the model number size should be 40 bytes (bytes 63:24 of the Identify Controller data structure). Therefore, any attempt to store a value into model_number which exceeds 40 bytes should return an error. Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com> Signed-off-by: Noam Gottlieb <ngottlieb@nvidia.com> Signed-off-by: Christoph Hellwig <hch@lst.de>