mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
printk changes for 6.8
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEESH4wyp42V4tXvYsjUqAMR0iAlPIFAmWFxecACgkQUqAMR0iA lPLq0RAAg0YQxIltUuR1/IcsVB6rMz8eekmR62sQlmsM2mYRHiEX4ffvM2aSuoMW 1ikAqtfDCFpjIg2dxlirIIA1bkCj7P9wUDShwZispPmjiAag1Woj3E02Q7enxljF LwkdBP0rm/59jGj3u/HKqQ/vwbusg6cezoCXXUqf9BMc7AaD9w4wyF4LbdyqVdcS B1ngNvqyONH7LS2rp3sixowbO0KDgtaPKFg3kC9r5Aqhz0pvJtmrdQhssx5jQzJ3 emnKdSPvrtbeLMa+/mYO9OsYa2PnqkotLRq5ulW4b/9QNluPmVqQbkyqiFJGldFo /jHLIIYM9CwaOhvqLY5o1uBq8jXQH6dyfE8Yv2aOcVGN8loTR3eG77h+ZgDAsIXL 6p5Twx4zCYlI80R8H5nVdpPa0MUjLBK7bG/oT7pmGnxK9pqtKNdejXqhrPzUcH0i sVbR9BfOTcWXQlL1CcQRc5sfoikv0Qp6TQbpaE+qyHogWZI3oOaJBo2ietvYx0Lp E73amdvkJ2q55rEspTdLxLDQCd7hov2zkQMtIHzLBybk7i9QaMLnzzjmUe7yy9yc il/8Ma+8PtYsPfC77PjMp7shI94Ldps0383I/NAon8DrUG7bV6CXd3QAPB1c7P/b AN7Qjig1udk7yZDHCm5TbX/niB3/sfiBWJINHG764+iUa3lkJ8E= =m5F8 -----END PGP SIGNATURE----- Merge tag 'printk-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux Pull printk fix from Petr Mladek: - Prevent refcount warning from code releasing a fwnode * tag 'printk-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux: lib/vsprintf: Fix %pfwf when current node refcount == 0
This commit is contained in:
commit
c0f65a7c11
@ -2111,15 +2111,20 @@ char *fwnode_full_name_string(struct fwnode_handle *fwnode, char *buf,
|
||||
|
||||
/* Loop starting from the root node to the current node. */
|
||||
for (depth = fwnode_count_parents(fwnode); depth >= 0; depth--) {
|
||||
struct fwnode_handle *__fwnode =
|
||||
fwnode_get_nth_parent(fwnode, depth);
|
||||
/*
|
||||
* Only get a reference for other nodes (i.e. parent nodes).
|
||||
* fwnode refcount may be 0 here.
|
||||
*/
|
||||
struct fwnode_handle *__fwnode = depth ?
|
||||
fwnode_get_nth_parent(fwnode, depth) : fwnode;
|
||||
|
||||
buf = string(buf, end, fwnode_get_name_prefix(__fwnode),
|
||||
default_str_spec);
|
||||
buf = string(buf, end, fwnode_get_name(__fwnode),
|
||||
default_str_spec);
|
||||
|
||||
fwnode_handle_put(__fwnode);
|
||||
if (depth)
|
||||
fwnode_handle_put(__fwnode);
|
||||
}
|
||||
|
||||
return buf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user