aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorKeith Busch <[email protected]>2023-09-12 14:38:58 -0700
committerKeith Busch <[email protected]>2023-09-14 13:09:52 -0700
commit6cc834ba62998c65c42d0c63499bdd35067151ec (patch)
treea94d6bf202fb77aacc762d2784acf67e27bdc7d5 /lib/test_fortify/write_overflow-strncpy-src.c
parentdad651b2a44eb6b201738f810254279dca29d30d (diff)
nvme: avoid bogus CRTO values
Some devices are reporting controller ready mode support, but return 0 for CRTO. These devices require a much higher time to ready than that, so they are failing to initialize after the driver starter preferring that value over CAP.TO. The spec requires that CAP.TO match the appropritate CRTO value, or be set to 0xff if CRTO is larger than that. This means that CAP.TO can be used to validate if CRTO is reliable, and provides an appropriate fallback for setting the timeout value if not. Use whichever is larger. Link: https://bugzilla.kernel.org/show_bug.cgi?id=217863 Reported-by: Cláudio Sampaio <[email protected]> Reported-by: Felix Yan <[email protected]> Tested-by: Felix Yan <[email protected]> Based-on-a-patch-by: Felix Yan <[email protected]> Cc: [email protected] Signed-off-by: Keith Busch <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions