#ifndef TRIE_H #define TRIE_H #include extern void trie_addr_lookup(char *buff, size_t len, int ipv4, int *fd, struct sockaddr_storage *addr, size_t *alen); extern int trie_addr_maybe_update(char *buff, size_t len, int ipv4, int fd, struct sockaddr_storage *addr, size_t alen); extern void trie_addr_remove(int fd); extern void trie_addr_remove_addr(struct sockaddr_storage *addr, size_t alen); extern void trie_init(void); extern void trie_cleanup(void); #endif /* TRIE_H */ -next.git Git repository'/>
summaryrefslogtreecommitdiff
tion value='7'>7
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>2016-09-22 12:02:25 +0300
committerMark Brown <broonie@kernel.org>2016-09-22 11:24:22 +0100
commitf0aa1ce6259eb65f53f969b3250c1d0aac84f30b (patch)
tree1015781676836a0e849c65a49e50679c1884b24d /Documentation/hwmon/tmp401
parent815806e39bf6f7e7b34875d4a9609dbe76661782 (diff)
regmap: fix deadlock on _regmap_raw_write() error path
Commit 815806e39bf6 ("regmap: drop cache if the bus transfer error") added a call to regcache_drop_region() to error path in _regmap_raw_write(). However that path runs with regmap lock taken, and regcache_drop_region() tries to re-take it, causing a deadlock. Fix that by calling map->cache_ops->drop() directly. Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/hwmon/tmp401')