alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* ALSA: Soc_compress open file node allows more than once
@ 2017-11-23 13:18 b_lkasam
  2017-11-23 13:41 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: b_lkasam @ 2017-11-23 13:18 UTC (permalink / raw)
  To: alsa-devel; +Cc: lkasam, mangeshk

Hi ALSA team,
This is regarding compress offload framework file operations wrt open 
system call.

For open call to this driver currently allows for same node more than 
once.

This may result in memleak issues or data corruption if same node in use 
by multiple instances.

can we have restriction to avoid open of same node using some refcount?

we can either have refcount under compr->private_data and cross check in 
below function before proceeding.
static int snd_compr_open(struct inode *inode, struct file *f)

Please suggest accordingly.

Thanks
Laxminath Kasam,
Qualcomm.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-28  6:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-23 13:18 ALSA: Soc_compress open file node allows more than once b_lkasam
2017-11-23 13:41 ` Takashi Iwai
2017-11-27  5:50   ` Vinod Koul
2017-12-28  6:35     ` b_lkasam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).