summaryrefslogtreecommitdiffstats
path: root/net/mac80211/ht.c
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2010-01-30 23:32:19 +0800
committerJoel Becker <joel.becker@oracle.com>2010-02-02 18:14:20 -0800
commitd622b89a2f58613a9c1407b22b02aecdd2187a7c (patch)
tree4987446f5308b324e74dd4bcc0da7c15f728d019 /net/mac80211/ht.c
parent26636bf6b2010aa84c54d577231e017ba71493d0 (diff)
ocfs2: Fix memory overflow in cow_by_page.
In ocfs2_duplicate_clusters_by_page, we calculate map_end by shifting page_index. But actually in case we meet with a large offset(say in a i686 box, poff_t is only 32 bits and page_index=2056240), we will overflow. So change the type of page_index to loff_t. Signed-off-by: Tao Ma <tao.ma@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'net/mac80211/ht.c')
0 files changed, 0 insertions, 0 deletions