Thanks for your review.
在 2019/8/12 23:34, Mike Christie 写道:
On 08/12/2019 07:31 AM, Sun Ke wrote:
When try to get the lock failed, before return, execute the
nbd_config_put() to decrease the nbd->config_refs.
If the nbd->config_refs is added but not decreased. Then will not
execute nbd_clear_
lowing and avoid UBSAN reporting.
The original compare is to ensure the offset >= 0 && nbytes >= 0 && no
overflow happened.
I do the calculate after compare. ensure the offset >= 0 && nbytes >= 0 &&
no overflow may happen first.
Signed-off-by: SunKe
---
Add bin_file read and write function
Signed-off-by: SunKe
---
samples/configfs/configfs_sample.c | 43 ++
1 file changed, 43 insertions(+)
diff --git a/samples/configfs/configfs_sample.c
b/samples/configfs/configfs_sample.c
index 004a4e2..c76b784 100644
Add soft link creation and deletion
Signed-off-by: SunKe
---
samples/configfs/configfs_sample.c | 41 ++
1 file changed, 41 insertions(+)
diff --git a/samples/configfs/configfs_sample.c
b/samples/configfs/configfs_sample.c
index c76b784..58915b8 100644
Add two test samples for configfs. include read and write bin_file and
creat soft link.
*** BLURB HERE ***
SunKe (2):
sample_configfs: bin_file read and write
sample_configfs: soft link creat and delete
samples/configfs/configfs_sample.c | 84 ++
1 file
Add bin_file read and write function
Signed-off-by: SunKe
---
samples/configfs/configfs_sample.c | 43 ++
1 file changed, 43 insertions(+)
diff --git a/samples/configfs/configfs_sample.c
b/samples/configfs/configfs_sample.c
index 004a4e2..c76b784 100644
6 matches
Mail list logo