commit | ee7ff5fed25711a26da7826071e6ede8af049ad2 | [log] [tgz] |
---|---|---|
author | Tilman Schmidt <tilman@imap.cc> | Sat Oct 11 13:46:29 2014 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Oct 14 15:05:33 2014 -0400 |
tree | b3335735c602a3dc1ac1ec1b5dbb580225c30f90 | |
parent | 1bdc07ebabefd19b56d1d36584a401ff6085fa71 [diff] |
isdn/gigaset: make sure controller name is null terminated In gigaset_isdn_regdev, the name field may not have a null terminator if the source string's length is equal to the buffer size. Fix by zero filling the structure and excluding the last byte of the name field from the copy. Spotted with Coverity. Signed-off-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: David S. Miller <davem@davemloft.net>