File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3531,8 +3531,9 @@ int smb2_open(struct ksmbd_work *work)
3531
3531
memcpy (fp -> create_guid , dh_info .CreateGuid ,
3532
3532
SMB2_CREATE_GUID_SIZE );
3533
3533
if (dh_info .timeout )
3534
- fp -> durable_timeout = min (dh_info .timeout ,
3535
- DURABLE_HANDLE_MAX_TIMEOUT );
3534
+ fp -> durable_timeout =
3535
+ min_t (unsigned int , dh_info .timeout ,
3536
+ DURABLE_HANDLE_MAX_TIMEOUT );
3536
3537
else
3537
3538
fp -> durable_timeout = 60 ;
3538
3539
}
Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ struct ksmbd_file {
100
100
struct list_head blocked_works ;
101
101
struct list_head lock_list ;
102
102
103
- int durable_timeout ;
104
- int durable_scavenger_timeout ;
103
+ unsigned int durable_timeout ;
104
+ unsigned int durable_scavenger_timeout ;
105
105
106
106
/* if ls is happening on directory, below is valid*/
107
107
struct ksmbd_readdir_data readdir_data ;
You can’t perform that action at this time.
0 commit comments