aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorZhipeng Lu <[email protected]>2024-02-01 20:41:05 +0800
committerDavid S. Miller <[email protected]>2024-02-03 12:46:13 +0000
commitf3616173bf9be9bf39d131b120d6eea4e6324cb5 (patch)
tree37408c4a47185014f42996f288bbfec596b09fc1 /scripts/generate_rust_analyzer.py
parentd75abeec401f8c86b470e7028a13fcdc87e5dd06 (diff)
atm: idt77252: fix a memleak in open_card_ubr0
When alloc_scq fails, card->vcs[0] (i.e. vc) should be freed. Otherwise, in the following call chain: idt77252_init_one |-> idt77252_dev_open |-> open_card_ubr0 |-> alloc_scq [failed] |-> deinit_card |-> vfree(card->vcs); card->vcs is freed and card->vcs[0] is leaked. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Zhipeng Lu <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions