/* * Copyright (C) 2015 Tobias Klauser * * This file is part of llmnrd. * * llmnrd is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 2 of the License. * * llmnrd is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with llmnrd. If not, see . */ #ifndef LLMNR_H #define LLMNR_H #include #include int llmnr_init(const char *hostname, uint16_t port, bool ipv6); int llmnr_run(void); void llmnr_stop(void); #endif /* LLMNR_H */ d='get'> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-10-12 09:17:30 +0300
committerAlex Deucher <alexander.deucher@amd.com>2016-10-13 18:25:50 -0400
commiteeb2fa0c97ba661f8b7fb210a1de10928b67a47b (patch)
tree3c194552a9b4ce732788d8486e2fa846bd1adae4
parent9faa6b0277fab4ab91db4d69bc47566fdfbae48b (diff)
drm/amdgpu: potential NULL dereference in debugfs code
debugfs_create_file() returns NULL on error, it only returns error pointers if debugfs isn't enabled in the config and we checked for that earlier so it can't happen. Fixes: 4f4824b55650 ('drm/amd/amdgpu: Convert ring debugfs entries to binary') Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>