summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2020-05-17 19:44:49 +0300
committerToomas Soome <tsoome@me.com>2021-04-07 20:30:52 +0300
commit8f097fe6cf8dff8db1e1c43d349b305633044d40 (patch)
tree7b4f0fe853147e1e1743fd5a31776beda92f5e3f /usr
parent7687d0d8812e33aceb40697eb2a8b408c1fe7b52 (diff)
downloadillumos-joyent-8f097fe6cf8dff8db1e1c43d349b305633044d40.tar.gz
13628 sppptun: array subscript 0 is outside array bounds
Reviewed by: Yuri Pankov <yuripv@yuripv.dev> Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Diffstat (limited to 'usr')
-rw-r--r--usr/src/uts/common/io/ppp/sppptun/sppptun_impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/ppp/sppptun/sppptun_impl.h b/usr/src/uts/common/io/ppp/sppptun/sppptun_impl.h
index 58480ae60c..ab879959d8 100644
--- a/usr/src/uts/common/io/ppp/sppptun/sppptun_impl.h
+++ b/usr/src/uts/common/io/ppp/sppptun/sppptun_impl.h
@@ -150,7 +150,7 @@ struct tuncl_s {
};
#define TO_TLL(p) \
- ((tunll_t *)((caddr_t)(p) - offsetof(tunll_t, tll_next)))
+ ((tunll_t *)((uintptr_t)(p) - offsetof(tunll_t, tll_next)))
#define TLLF_NOTLOWER 0x00000001 /* never set */
#define TLLF_CLOSING 0x00000002 /* driver detach initiated */