aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorNoam Gottlieb <[email protected]>2021-06-07 09:23:21 +0000
committerChristoph Hellwig <[email protected]>2021-06-17 13:51:19 +0000
commite13b061589ace0aee18bdbf86f3ddb2b6b5b5ab8 (patch)
tree6fe78c77b7fffb70076c6c9c165e98cec7315ac1 /net/switchdev/switchdev.c
parentnvmet-fc: do not check for invalid target port in nvmet_fc_handle_fcp_rqst() (diff)
downloadkernel-e13b061589ace0aee18bdbf86f3ddb2b6b5b5ab8.tar.gz
kernel-e13b061589ace0aee18bdbf86f3ddb2b6b5b5ab8.zip
nvmet: change sn size and check validity
According to the NVM specification, the serial_number should be 20 bytes (bytes 23:04 of the Identify Controller data structure), and should contain only ASCII characters. In accordance, the serial_number size is changed to 20 bytes and before any attempt to store a new value in serial_number we check that the input is valid - i.e. contains only ASCII characters, is not empty and does not exceed 20 bytes. Signed-off-by: Max Gurtovoy <[email protected]> Signed-off-by: Noam Gottlieb <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions