Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1327698
| From | Jiri Kosina <jikos@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] HID: Check whether if the hidraw is NULL pointer before release. |
| Date | 2016-02-05 14:40 +0100 |
| Message-ID | <qYOMc-P6-51@gated-at.bofh.it> (permalink) |
| References | <qYOMc-P6-53@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 2 Feb 2016, shenpengru@gmail.com wrote: > From: shenpengru <shenpengru@xiaomi.com> > > The logic of service which operate hidraw device in user-space may > not correct, sometimes it may release hidraw dev for more than once. > In order to prevent this situation, we need to make the driver more > robust. Hmm .. how would you call close(fd) twice on the same descriptor and let it pass fput()? I'd like to better understand how we ended up in this situation. Could you please provide more details? Thanks a lot, -- Jiri Kosina SUSE Labs
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH] HID: Check whether if the hidraw is NULL pointer before release. Jiri Kosina <jikos@kernel.org> - 2016-02-05 14:40 +0100
csiph-web