]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(ufs): move nutrs assignment to ufs_init
authoranans <anans@google.com>
Tue, 15 Mar 2022 08:07:37 +0000 (13:37 +0530)
committeranans <anans@google.com>
Wed, 16 Mar 2022 03:42:44 +0000 (09:12 +0530)
commit0956319b580726029ddc4e00cde6c5a348b99052
tree7ef485d707fdedab66b4e4709e294cdc2a3ad5a8
parent6e16f7f09c6171e0dc07a0a8b97a3569e8b47a9a
fix(ufs): move nutrs assignment to ufs_init

nutrs is set in ufs_enum (used by get_empty_slot), this will not
be assigned if UFS_FLAGS_SKIPINIT is set in flags during init and
might end up crashing read/write commands

Change-Id: I1517b69c56741fd5bf4ef0ebc1fc8738746233d7
Signed-off-by: anans <anans@google.com>
drivers/ufs/ufs.c