usb-core: Revert "usb-core: Remove Fix mes in file hcd.c"
PATCH 1/1 usb-core: Revert "usb-core: Remove Fix mes in file hcd.c"
Revert since the commit message is incorrect and the original author refuses to fix/maintain it because "it's in the kernel already".
--- drivers/usb/core/hcd.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/usb/core/hcd.c +4 -0
@@ -855,6 +855,8 @@ static ssize_t authorized_default_show(struct device *dev,struct usb_bus *usb_bus = rh_usb_dev->bus;struct usb_hcd *usb_hcd; +if (usb_bus ==NULL )/* FIXME: not sure if this case is possible */ +return -ENODEV ; usb_hcd =bus_to_hcd (usb_bus);return snprintf (buf,PAGE_SIZE ,"%u\n" , usb_hcd->authorized_default); }
@@ -869,6 +871,8 @@ static ssize_t authorized_default_store(struct device *dev,struct usb_bus *usb_bus = rh_usb_dev->bus;struct usb_hcd *usb_hcd; +if (usb_bus ==NULL )/* FIXME: not sure if this case is possible */ +return -ENODEV ; usb_hcd =bus_to_hcd (usb_bus); result =sscanf (buf,"%u\n" , &val);if (result ==1 ) {
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 2 lines · Sasha Levin
Revert since the commit message is incorrect and the original author refuses to fix/maintain it because "it's in the kernel already".
How can someone "fix" a commit message that is already in the tree? You can't. The code part is correct, so why introduce the issue back?
I understand your frustration at the original submitter (whom I have personally kill-filed), but reverting the patch isn't going to do anything good overall here, sorry.
greg k-h
Quoted 5 lines · Greg KH
Quoted 2 lines · Sasha Levin
Quoted 2 lines
Revert since the commit message is incorrect and the original author refuses to fix/maintain it because "it's in the kernel already".
How can someone "fix" a commit message that is already in the tree? You can't. The code part is correct, so why introduce the issue back?
(I'm not trying to be aggressive, I just think that I misunderstand how this part of the process works exactly).
I thought we can always edit -next trees? Why do we have to maintain fast forward on them?
What happens, if for example you take a patch that causes build breakage? Would you add a revert after that or just yank the commit out of the tree?
If you add a revert and leave the original broken commit in, wouldn't it cause issues for anyone trying to bisect a build breakage?
Thanks,
Sasha
Greg KH
maintainerQuoted 4 lines · Sasha Levin
Quoted 3 lines · Greg KH
Quoted 2 lines · Sasha Levin
Quoted 2 lines
Revert since the commit message is incorrect and the original author refuses to fix/maintain it because "it's in the kernel already".
Quoted 8 lines
Quoted 2 lines
How can someone "fix" a commit message that is already in the tree? You can't. The code part is correct, so why introduce the issue back?
(I'm not trying to be aggressive, I just think that I misunderstand how this part of the process works exactly).
I thought we can always edit -next trees? Why do we have to maintain fast forward on them?
I can never edit my public trees, because people base their work on them, and they are public.
Quoted 2 lines
What happens, if for example you take a patch that causes build breakage? Would you add a revert after that or just yank the commit out of the tree?
I add a revert, or add a patch that fixes it.
Quoted 2 lines
If you add a revert and leave the original broken commit in, wouldn't it cause issues for anyone trying to bisect a build breakage?
Yes it does.
I can not rebase my public trees, nor should any other kernel maintainer. This has been true for _many_ years.
greg k-h
Quoted 6 lines · Greg KH
Quoted 2 lines
If you add a revert and leave the original broken commit in, wouldn't it cause issues
Quoted 1 line
for anyone trying to bisect a build breakage?
Yes it does.
I can not rebase my public trees, nor should any other kernel maintainer. This has been true for _many_ years.
This isn't the case with -mm, for example, where the tree does get edited quite often.
What stops you from editing it even if people are working on it? 'git pull --rebase' will dtrt for both the ff and the non-ff case, where the non-ff case would have happen either way if those people kept tracking your -next tree.
Thanks,
Sasha
Greg KH
maintainerQuoted 10 lines · Sasha Levin
Quoted 6 lines · Greg KH
Quoted 2 lines
If you add a revert and leave the original broken commit in, wouldn't it cause issues
Quoted 1 line
for anyone trying to bisect a build breakage?
Yes it does.
I can not rebase my public trees, nor should any other kernel maintainer. This has been true for _many_ years.
This isn't the case with -mm, for example, where the tree does get edited quite often.
-mm is a set of quilt patches, not a git tree.
Quoted 3 lines
What stops you from editing it even if people are working on it? 'git pull --rebase' will dtrt for both the ff and the non-ff case, where the non-ff case would have happen either way if those people kept tracking your -next tree.
No, subsystem maintainers are not allowed to break their trees like this, unless something really major happens that requires it.
Again, it's been this way for years, and is one of the requirements of subsystem maintainers. If you want a "testing" branch, use a "testing" branch, but don't cause problems on your "real" branch or problems will happen.
thanks,
greg k-h