summaryrefslogtreecommitdiff
path: root/drivers/dma/pch_dma.c
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@broadcom.com>2017-08-22 12:56:56 +0300
committerVinod Koul <vinod.koul@intel.com>2017-08-28 14:14:24 +0300
commit5655e00f5cde2c856c80eb10d0e6c911b7d880f2 (patch)
treeadc764a18c7955eb664e12a2aef903f9dcdbb0a0 /drivers/dma/pch_dma.c
parentabfa251afe27ee7820c3a082fe573ec5bedb3488 (diff)
downloadlinux-5655e00f5cde2c856c80eb10d0e6c911b7d880f2.tar.xz
dmaengine: bcm-sba-raid: Allow arbitrary number free sba_request
Currently, we cannot have any arbitrary number of free sba_request because sba_prealloc_channel_resources() allocates an array of sba_request using devm_kcalloc() and kcalloc() cannot provide memory beyond certain size. This patch removes "reqs" (sba_request array) from sba_device and makes "cmds" as variable array (instead of pointer) in sba_request. This helps sba_prealloc_channel_resources() to allocate sba_request and associated SBA command in one allocation which in-turn allows arbitrary number of free sba_request. Signed-off-by: Anup Patel <anup.patel@broadcom.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/pch_dma.c')
0 files changed, 0 insertions, 0 deletions