aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorHimangi Saraogi <[email protected]>2014-06-10 19:48:47 +0530
committerChristoph Hellwig <[email protected]>2014-07-25 17:16:54 -0400
commit1f3d2d9edc832bdd5507130446abf1c8d2923ac5 (patch)
treebda354a1ad74f1c49fe80eed0d9b5fc13b053695 /fs/jbd2/commit.c
parentc21a2c1a4973c8dde32557970fdb44eaa9489aeb (diff)
aic7xxx: Use kstrdup
Use kstrdup when the goal of an allocation is copy a string into the allocated region. The Coccinelle semantic patch that makes this change is as follows: // <smpl> @@ expression from,to; expression flag,E1,E2; statement S; @@ - to = kmalloc(strlen(from) + 1,flag); + to = kstrdup(from, flag); ... when != \(from = E1 \| to = E1 \) if (to==NULL || ...) S ... when != \(from = E2 \| to = E2 \) - strcpy(to, from); // </smpl> Signed-off-by: Himangi Saraogi <[email protected]> Acked-by: Julia Lawall <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions