diff options
author | Dan Carpenter | 2017-05-01 20:43:43 +0200 |
---|---|---|
committer | Steve French | 2017-05-02 21:57:34 +0200 |
commit | 564277eceeca01e02b1ef3e141cfb939184601b4 (patch) | |
tree | 57e17aa79a915acfe21d8e428c9be0c28df84c9e /fs/cifs/connect.c | |
parent | Merge branch 'work.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/v... (diff) | |
download | kernel-qcow2-linux-564277eceeca01e02b1ef3e141cfb939184601b4.tar.gz kernel-qcow2-linux-564277eceeca01e02b1ef3e141cfb939184601b4.tar.xz kernel-qcow2-linux-564277eceeca01e02b1ef3e141cfb939184601b4.zip |
cifs: small underflow in cnvrtDosUnixTm()
January is month 1. There is no zero-th month. If someone passes a
zero month then it means we read from one space before the start of the
total_days_of_prev_months[] array.
We may as well also be strict about days as well.
Fixes: 1bd5bbcb6531 ("[CIFS] Legacy time handling for Win9x and OS/2 part 1")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/connect.c')
0 files changed, 0 insertions, 0 deletions