[PATCH 4.9 104/329] ptr_ring: prevent integer overflow when calculating size