[PATCH v2] carl9170: fix debugfs crashes

2016-09-21 Thread Christian Lamparter
Ben Greear reported: > I see lots of instability as soon as I load up the carl9710 NIC. > My application is going to be poking at it's debugfs files... > > BUG: KASAN: slab-out-of-bounds in carl9170_debugfs_read+0xd5/0x2a0 > [carl9170] at addr 0x8801bc1208b0 > Read of size 8 by task

[PATCH v2] carl9170: fix debugfs crashes

2016-09-21 Thread Christian Lamparter
Ben Greear reported: > I see lots of instability as soon as I load up the carl9710 NIC. > My application is going to be poking at it's debugfs files... > > BUG: KASAN: slab-out-of-bounds in carl9170_debugfs_read+0xd5/0x2a0 > [carl9170] at addr 0x8801bc1208b0 > Read of size 8 by task