aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2016-07-14 10:44:56 +0000
committerBrian Norris <[email protected]>2016-07-16 04:52:34 +0000
commit79ad07d45743721010e766e65dc004ad249bd429 (patch)
treefa08ef2c8fbdc046b0c32ea229ffbfb38839d12f /drivers/net/xen-netback/interface.c
parentmtd: maps: sa1100-flash: potential NULL dereference (diff)
downloadkernel-79ad07d45743721010e766e65dc004ad249bd429.tar.gz
kernel-79ad07d45743721010e766e65dc004ad249bd429.zip
mtd: pmcmsp-flash: Allocating too much in init_msp_flash()
There is a cut and paste issue here. The bug is that we are allocating more memory than necessary for msp_maps. We should be allocating enough space for a map_info struct (144 bytes) but we instead allocate enough for an mtd_info struct (1840 bytes). It's a small waste. The other part of this is not harmful but when we allocated msp_flash then we allocated enough space fro a map_info pointer instead of an mtd_info pointer. But since pointers are the same size it works out fine. Anyway, I decided to clean up all three allocations a bit to make them a bit more consistent and clear. Fixes: 68aa0fa87f6d ('[MTD] PMC MSP71xx flash/rootfs mappings') Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Brian Norris <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions